Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/dev/pci pullup 1.19->1.20 (thorpej): fix an mbuf leak
details: https://anonhg.NetBSD.org/src/rev/bb1cc5d64e88
branches: netbsd-1-4
changeset: 468464:bb1cc5d64e88
user: perry <perry%NetBSD.org@localhost>
date: Mon Apr 26 15:16:12 1999 +0000
description:
pullup 1.19->1.20 (thorpej): fix an mbuf leak
diffstat:
sys/dev/pci/if_vr.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 2b44355c5160 -r bb1cc5d64e88 sys/dev/pci/if_vr.c
--- a/sys/dev/pci/if_vr.c Mon Apr 26 15:14:31 1999 +0000
+++ b/sys/dev/pci/if_vr.c Mon Apr 26 15:16:12 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vr.c,v 1.19 1999/03/24 01:07:59 thorpej Exp $ */
+/* $NetBSD: if_vr.c,v 1.19.2.1 1999/04/26 15:16:12 perry Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -813,8 +813,10 @@
}
if (total_len > (MHLEN - 2)) {
MCLGET(m, M_DONTWAIT);
- if ((m->m_flags & M_EXT) == 0)
+ if ((m->m_flags & M_EXT) == 0) {
+ m_freem(m);
goto dropit;
+ }
}
m->m_data += 2;
Home |
Main Index |
Thread Index |
Old Index