summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-03-02 08:42:43 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-03-02 08:42:43 +0000
commitdcfcf6ad271c86f5e0930ace2746336c80106f01 (patch)
treeadde0e9a178e0dc1f526ee693edd414b023e9c82 /sys/dev
parentbe9ec249521fd803a22754edf4bbae17ee69953e (diff)
If bus_dmamap_load_mbuf() fails in ixgb_get_buf() use m_freem() intead of
m_free() to free the mbuf cluster. ok mglocker@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_ixgb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ixgb.c b/sys/dev/pci/if_ixgb.c
index 9d1dff79e0d..e2c4a94780f 100644
--- a/sys/dev/pci/if_ixgb.c
+++ b/sys/dev/pci/if_ixgb.c
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
-/* $OpenBSD: if_ixgb.c,v 1.39 2008/02/19 18:47:18 brad Exp $ */
+/* $OpenBSD: if_ixgb.c,v 1.40 2008/03/02 08:42:42 brad Exp $ */
#include <dev/pci/if_ixgb.h>
@@ -1496,7 +1496,7 @@ ixgb_get_buf(struct ixgb_softc *sc, int i,
error = bus_dmamap_load_mbuf(sc->rxtag, rx_buffer->map,
mp, BUS_DMA_NOWAIT);
if (error) {
- m_free(mp);
+ m_freem(mp);
return (error);
}
rx_buffer->m_head = mp;