summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2005-11-23 21:08:47 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2005-11-23 21:08:47 +0000
commit88900e751301a3453e1e9e5e30d0d6e28baea12c (patch)
tree9c1a127f6742f1e83dc172d75dbd15f805189ae2 /sys/dev
parentfbdaeed62bb23e993e6efe41cccc3baa09716a44 (diff)
fix my previous commit. don't leak an mbuf.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_iwi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c
index c3836540fb3..3dd96512a6e 100644
--- a/sys/dev/pci/if_iwi.c
+++ b/sys/dev/pci/if_iwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwi.c,v 1.53 2005/11/23 21:04:40 damien Exp $ */
+/* $OpenBSD: if_iwi.c,v 1.54 2005/11/23 21:08:46 damien Exp $ */
/*-
* Copyright (c) 2004, 2005
@@ -790,6 +790,7 @@ iwi_frame_intr(struct iwi_softc *sc, struct iwi_rx_buf *buf, int i,
MCLGET(mnew, M_DONTWAIT);
if (!(mnew->m_flags & M_EXT)) {
+ m_freem(mnew);
ifp->if_ierrors++;
return;
}