From 88900e751301a3453e1e9e5e30d0d6e28baea12c Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Wed, 23 Nov 2005 21:08:47 +0000 Subject: fix my previous commit. don't leak an mbuf. --- sys/dev/pci/if_iwi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci') 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; } -- cgit v1.2.3