Module Name: src Committed By: mrg Date: Tue Dec 27 18:55:06 UTC 2022
Modified Files: src/sys/arch/arm/nxp: if_enet_imx.c Log Message: don't use uninitialised data. should fix PR#57135's crash. XXX: pullup-10 To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/arm/nxp/if_enet_imx.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/nxp/if_enet_imx.c diff -u src/sys/arch/arm/nxp/if_enet_imx.c:1.6 src/sys/arch/arm/nxp/if_enet_imx.c:1.7 --- src/sys/arch/arm/nxp/if_enet_imx.c:1.6 Wed Jan 27 03:10:20 2021 +++ src/sys/arch/arm/nxp/if_enet_imx.c Tue Dec 27 18:55:06 2022 @@ -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 @@ enet_attach(device_t parent, device_t se return; failure: - bus_space_unmap(sc->sc_iot, sc->sc_ioh, size); + bus_space_unmap(bst, bsh, size); return; }