Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/7653b0bbae2c
branches:  netbsd-8
changeset: 460934:7653b0bbae2c
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Nov 10 13:34:46 2019 +0000

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

        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 cb20a0640e6a -r 7653b0bbae2c sys/dev/pci/if_jme.c
--- a/sys/dev/pci/if_jme.c      Wed Nov 06 10:27:05 2019 +0000
+++ b/sys/dev/pci/if_jme.c      Sun Nov 10 13:34:46 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_jme.c,v 1.31.8.2 2018/07/26 23:55:30 snj Exp $      */
+/*     $NetBSD: if_jme.c,v 1.31.8.3 2019/11/10 13:34:46 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.31.8.2 2018/07/26 23:55:30 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_jme.c,v 1.31.8.3 2019/11/10 13:34:46 martin Exp $");
 
 
 #include <sys/param.h>
@@ -1450,7 +1450,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