diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-09-02 16:08:50 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-09-02 16:08:50 +0000 |
commit | d44c1464f9ec482634ed9abbd88b535620d027e7 (patch) | |
tree | e7e926b98e24fa1961ba776810efdc45e52902d9 /sys/dev/pci/if_ix.c | |
parent | 952fbd2fa633eb0de19311e283f0b4896f8cdad5 (diff) |
correct sizes for free(), sigh
Diffstat (limited to 'sys/dev/pci/if_ix.c')
-rw-r--r-- | sys/dev/pci/if_ix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c index 95877a92a63..adbc073a92b 100644 --- a/sys/dev/pci/if_ix.c +++ b/sys/dev/pci/if_ix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ix.c,v 1.123 2015/09/01 07:09:55 deraadt Exp $ */ +/* $OpenBSD: if_ix.c,v 1.124 2015/09/02 16:08:49 deraadt Exp $ */ /****************************************************************************** @@ -2033,7 +2033,7 @@ ixgbe_free_transmit_buffers(struct tx_ring *txr) if (txr->tx_buffers != NULL) free(txr->tx_buffers, M_DEVBUF, - sc->num_queues * sizeof(struct tx_ring)); + sc->num_tx_desc * sizeof(struct ixgbe_tx_buf)); txr->tx_buffers = NULL; txr->txtag = NULL; } @@ -2795,7 +2795,7 @@ ixgbe_free_receive_buffers(struct rx_ring *rxr) rxbuf->map = NULL; } free(rxr->rx_buffers, M_DEVBUF, - sc->num_queues * sizeof(struct rx_ring)); + sc->num_rx_desc * sizeof(struct ixgbe_rx_buf)); rxr->rx_buffers = NULL; } } |