Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/nxp don't use uninitialised data. should fix P...



details:   https://anonhg.NetBSD.org/src/rev/11548349be03
branches:  trunk
changeset: 372803:11548349be03
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Dec 27 18:55:06 2022 +0000

description:
don't use uninitialised data.  should fix PR#57135's crash.

XXX: pullup-10

diffstat:

 sys/arch/arm/nxp/if_enet_imx.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 77fd42e97628 -r 11548349be03 sys/arch/arm/nxp/if_enet_imx.c
--- a/sys/arch/arm/nxp/if_enet_imx.c    Tue Dec 27 18:32:14 2022 +0000
+++ b/sys/arch/arm/nxp/if_enet_imx.c    Tue Dec 27 18:55:06 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_enet_imx.c,v 1.6 2021/01/27 03:10:20 thorpej Exp $  */
+/*     $NetBSD: if_enet_imx.c,v 1.7 2022/12/27 18:55:06 mrg Exp $      */
 
 /*-
  * Copyright (c) 2019 Genetec Corporation.  All rights reserved.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_enet_imx.c,v 1.6 2021/01/27 03:10:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_enet_imx.c,v 1.7 2022/12/27 18:55:06 mrg Exp $");
 
 #include "opt_fdt.h"
 
@@ -175,7 +175,7 @@
        return;
 
 failure:
-       bus_space_unmap(sc->sc_iot, sc->sc_ioh, size);
+       bus_space_unmap(bst, bsh, size);
        return;
 }
 



Home | Main Index | Thread Index | Old Index