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/ic Pull up following revision(s) (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/6a250320401d
branches:  netbsd-6-0
changeset: 775241:6a250320401d
user:      snj <snj%NetBSD.org@localhost>
date:      Sat Aug 19 03:15:53 2017 +0000

description:
Pull up following revision(s) (requested by mrg in ticket #1478):
        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 dd0787992d79 -r 6a250320401d sys/dev/ic/bwi.c
--- a/sys/dev/ic/bwi.c  Fri Aug 18 15:10:26 2017 +0000
+++ b/sys/dev/ic/bwi.c  Sat Aug 19 03:15:53 2017 +0000
@@ -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 @@
        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