Module Name: src
Committed By: riastradh
Date: Sat Jul 29 01:19:29 UTC 2017
Modified Files:
src/sys/dev/ic: bwi.c
Log Message:
Check for M_EXT in m->m_flags, whether m is NULL, after MCLGET.
>From Ilja Van Sprundel.
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/ic/bwi.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/bwi.c
diff -u src/sys/dev/ic/bwi.c:1.31 src/sys/dev/ic/bwi.c:1.32
--- src/sys/dev/ic/bwi.c:1.31 Thu Feb 2 10:05:35 2017
+++ src/sys/dev/ic/bwi.c Sat Jul 29 01:19:29 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: bwi.c,v 1.31 2017/02/02 10:05:35 nonaka Exp $ */
+/* $NetBSD: bwi.c,v 1.32 2017/07/29 01:19:29 riastradh Exp $ */
/* $OpenBSD: bwi.c,v 1.74 2008/02/25 21:13:30 mglocker Exp $ */
/*
@@ -48,7 +48,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bwi.c,v 1.31 2017/02/02 10:05:35 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bwi.c,v 1.32 2017/07/29 01:19:29 riastradh Exp $");
#include <sys/param.h>
#include <sys/callout.h>
@@ -8328,7 +8328,7 @@ bwi_newbuf(struct bwi_softc *sc, int buf
if (m == NULL)
return (ENOBUFS);
MCLGET(m, init ? M_WAITOK : M_DONTWAIT);
- if (m == NULL) {
+ if ((m->m_flags & M_EXT) == 0) {
error = ENOBUFS;
/*