Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6-0]: src/sys/dev/pci Pull up following revision(s) (requested by...
details: https://anonhg.NetBSD.org/src/rev/1e1990db06c1
branches: netbsd-6-0
changeset: 775236:1e1990db06c1
user: snj <snj%NetBSD.org@localhost>
date: Fri Aug 18 15:00:13 2017 +0000
description:
Pull up following revision(s) (requested by mrg in ticket #1474):
sys/dev/pci/if_et.c: revision 1.15
Check for MCLGET failure in et_newbuf.
>From Ilja Van Sprundel.
diffstat:
sys/dev/pci/if_et.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r d90470c2da3f -r 1e1990db06c1 sys/dev/pci/if_et.c
--- a/sys/dev/pci/if_et.c Fri Aug 18 14:57:35 2017 +0000
+++ b/sys/dev/pci/if_et.c Fri Aug 18 15:00:13 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_et.c,v 1.3 2012/01/30 19:41:20 drochner Exp $ */
+/* $NetBSD: if_et.c,v 1.3.6.1 2017/08/18 15:00:13 snj Exp $ */
/* $OpenBSD: if_et.c,v 1.11 2008/06/08 06:18:07 jsg Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_et.c,v 1.3 2012/01/30 19:41:20 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_et.c,v 1.3.6.1 2017/08/18 15:00:13 snj Exp $");
#include "opt_inet.h"
#include "vlan.h"
@@ -2056,6 +2056,10 @@
if (m == NULL)
return (ENOBUFS);
MCLGET(m, init ? M_WAITOK : M_DONTWAIT);
+ if ((m->m_flags & M_EXT) == 0) {
+ m_freem(m);
+ return (ENOBUFS);
+ }
len = MCLBYTES;
} else {
MGETHDR(m, init ? M_WAITOK : M_DONTWAIT, MT_DATA);
Home |
Main Index |
Thread Index |
Old Index