Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/dev/pci Pull up following revision(s) (requested by m...



details:   https://anonhg.NetBSD.org/src/rev/f4791c9a506c
branches:  netbsd-9
changeset: 460476:f4791c9a506c
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Oct 24 16:25:33 2019 +0000

description:
Pull up following revision(s) (requested by msaitoh in ticket #376):

        sys/dev/pci/if_jme.c: revision 1.46

A * is missing here. This could cause a use-after-free.
Found by the lgtm bot.

diffstat:

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

diffs (27 lines):

diff -r 38d88a2cb32c -r f4791c9a506c sys/dev/pci/if_jme.c
--- a/sys/dev/pci/if_jme.c      Thu Oct 24 16:23:17 2019 +0000
+++ b/sys/dev/pci/if_jme.c      Thu Oct 24 16:25:33 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_jme.c,v 1.44 2019/07/09 08:46:59 msaitoh Exp $      */
+/*     $NetBSD: if_jme.c,v 1.44.2.1 2019/10/24 16:25:33 martin Exp $   */
 
 /*
  * Copyright (c) 2008 Manuel Bouyer.  All rights reserved.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_jme.c,v 1.44 2019/07/09 08:46:59 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_jme.c,v 1.44.2.1 2019/10/24 16:25:33 martin Exp $");
 
 
 #include <sys/param.h>
@@ -1453,7 +1453,7 @@
                            "DMA segments, dropping...\n",
                            device_xname(sc->jme_dev));
                        m_freem(*m_head);
-                       m_head = NULL;
+                       *m_head = NULL;
                }
                return (error);
        }



Home | Main Index | Thread Index | Old Index