Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/dev/hyperv Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/f67df13fe3d4
branches:  netbsd-8
changeset: 461196:f67df13fe3d4
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Nov 18 19:27:56 2019 +0000

description:
Pull up following revision(s) (requested by nonaka in ticket #1447):

        sys/dev/hyperv/if_hvn.c: revision 1.7

Fixed incorrect m_defrag return value check.

diffstat:

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

diffs (27 lines):

diff -r e91bee97d381 -r f67df13fe3d4 sys/dev/hyperv/if_hvn.c
--- a/sys/dev/hyperv/if_hvn.c   Sat Nov 16 16:40:29 2019 +0000
+++ b/sys/dev/hyperv/if_hvn.c   Mon Nov 18 19:27:56 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_hvn.c,v 1.2.2.3 2019/11/16 16:23:31 martin Exp $    */
+/*     $NetBSD: if_hvn.c,v 1.2.2.4 2019/11/18 19:27:56 martin Exp $    */
 /*     $OpenBSD: if_hvn.c,v 1.39 2018/03/11 14:31:34 mikeb Exp $       */
 
 /*-
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_hvn.c,v 1.2.2.3 2019/11/16 16:23:31 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_hvn.c,v 1.2.2.4 2019/11/18 19:27:56 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -571,7 +571,7 @@
        case 0:
                break;
        case EFBIG:
-               if (m_defrag(m, M_NOWAIT) == 0 &&
+               if (m_defrag(m, M_NOWAIT) != NULL &&
                    bus_dmamap_load_mbuf(sc->sc_dmat, txd->txd_dmap, m,
                      BUS_DMA_READ | BUS_DMA_NOWAIT) == 0)
                        break;



Home | Main Index | Thread Index | Old Index