summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordamien <damien@openbsd.org>2005-11-23 21:08:46 +0000
committerdamien <damien@openbsd.org>2005-11-23 21:08:46 +0000
commit5cdb378f2a1cecc4c510d1a9b6cb5248f5feb4c6 (patch)
treeb35418bd6283edcb9900a34d0e2b0346a05a2770
parentBe more robust when handling Rx interrupts. If we can't allocate and DMA map (diff)
downloadwireguard-openbsd-5cdb378f2a1cecc4c510d1a9b6cb5248f5feb4c6.tar.xz
wireguard-openbsd-5cdb378f2a1cecc4c510d1a9b6cb5248f5feb4c6.zip
fix my previous commit. don't leak an mbuf.
-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;
}