svn commit: r351674 - stable/12/sys/arm/samsung/exynos
Ed Maste
emaste at FreeBSD.org
Mon Sep 2 00:29:15 UTC 2019
Author: emaste
Date: Mon Sep 2 00:29:14 2019
New Revision: 351674
URL: https://svnweb.freebsd.org/changeset/base/351674
Log:
MFC r351618, r351619: exynos5: avoid NULL deref in error case
Reported by: Dr Silvio Cesare of InfoSect
Sponsored by: The FreeBSD Foundation
Modified:
stable/12/sys/arm/samsung/exynos/exynos5_combiner.c
stable/12/sys/arm/samsung/exynos/exynos5_pad.c
Modified: stable/12/sys/arm/samsung/exynos/exynos5_combiner.c
==============================================================================
--- stable/12/sys/arm/samsung/exynos/exynos5_combiner.c Sun Sep 1 22:22:43 2019 (r351673)
+++ stable/12/sys/arm/samsung/exynos/exynos5_combiner.c Mon Sep 2 00:29:14 2019 (r351674)
@@ -314,7 +314,7 @@ combiner_setup_intr(char *source_name, void (*ih)(void
sc = combiner_sc;
if (sc == NULL) {
- device_printf(sc->dev, "Error: combiner is not attached\n");
+ printf("%s: error: combiner is not attached\n", __func__);
return;
}
Modified: stable/12/sys/arm/samsung/exynos/exynos5_pad.c
==============================================================================
--- stable/12/sys/arm/samsung/exynos/exynos5_pad.c Sun Sep 1 22:22:43 2019 (r351673)
+++ stable/12/sys/arm/samsung/exynos/exynos5_pad.c Mon Sep 2 00:29:14 2019 (r351674)
@@ -410,7 +410,7 @@ pad_setup_intr(int gpio_number, void (*ih)(void *), vo
sc = gpio_sc;
if (sc == NULL) {
- device_printf(sc->dev, "Error: pad is not attached\n");
+ printf("%s: Error: pad is not attached\n", __func__);
return (-1);
}
More information about the svn-src-all
mailing list