Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/sys/dev/ic Pull up following revision(s) (requested by sp...



details:   https://anonhg.NetBSD.org/src/rev/89bd46fd8639
branches:  netbsd-8
changeset: 434187:89bd46fd8639
user:      snj <snj%NetBSD.org@localhost>
date:      Sat Aug 05 05:06:48 2017 +0000

description:
Pull up following revision(s) (requested by spz in ticket #187):
        sys/dev/ic/bwi.c: revision 1.32
Check for M_EXT in m->m_flags, whether m is NULL, after MCLGET.
>From Ilja Van Sprundel.

diffstat:

 sys/dev/ic/bwi.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0fb98e2a1e2f -r 89bd46fd8639 sys/dev/ic/bwi.c
--- a/sys/dev/ic/bwi.c  Sat Aug 05 04:53:34 2017 +0000
+++ b/sys/dev/ic/bwi.c  Sat Aug 05 05:06:48 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bwi.c,v 1.31 2017/02/02 10:05:35 nonaka Exp $  */
+/*     $NetBSD: bwi.c,v 1.31.6.1 2017/08/05 05:06:48 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.31 2017/02/02 10:05:35 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bwi.c,v 1.31.6.1 2017/08/05 05:06:48 snj Exp $");
 
 #include <sys/param.h>
 #include <sys/callout.h>
@@ -8328,7 +8328,7 @@
        if (m == NULL)
                return (ENOBUFS);
        MCLGET(m, init ? M_WAITOK : M_DONTWAIT);
-       if (m == NULL) {
+       if ((m->m_flags & M_EXT) == 0) {
                error = ENOBUFS;
 
                /*



Home | Main Index | Thread Index | Old Index