Module Name: src Committed By: snj Date: Sat Aug 19 03:15:53 UTC 2017
Modified Files: src/sys/dev/ic [netbsd-6-0]: bwi.c Log Message: `cat ~/releng/r-commit` To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.18.12.1 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.18 src/sys/dev/ic/bwi.c:1.18.12.1 --- src/sys/dev/ic/bwi.c:1.18 Mon Oct 10 11:15:24 2011 +++ src/sys/dev/ic/bwi.c Sat Aug 19 03:15:53 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: bwi.c,v 1.18 2011/10/10 11:15:24 njoly Exp $ */ +/* $NetBSD: bwi.c,v 1.18.12.1 2017/08/19 03:15:53 snj 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.18 2011/10/10 11:15:24 njoly Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bwi.c,v 1.18.12.1 2017/08/19 03:15:53 snj Exp $"); #include <sys/param.h> #include <sys/callout.h> @@ -8315,7 +8315,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; /*