svn commit: r351675 - stable/11/sys/arm/samsung/exynos
Ed Maste
emaste at FreeBSD.org
Mon Sep 2 00:29:17 UTC 2019
Author: emaste
Date: Mon Sep 2 00:29:16 2019
New Revision: 351675
URL: https://svnweb.freebsd.org/changeset/base/351675
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/11/sys/arm/samsung/exynos/exynos5_combiner.c
stable/11/sys/arm/samsung/exynos/exynos5_pad.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/arm/samsung/exynos/exynos5_combiner.c
==============================================================================
--- stable/11/sys/arm/samsung/exynos/exynos5_combiner.c Mon Sep 2 00:29:14 2019 (r351674)
+++ stable/11/sys/arm/samsung/exynos/exynos5_combiner.c Mon Sep 2 00:29:16 2019 (r351675)
@@ -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/11/sys/arm/samsung/exynos/exynos5_pad.c
==============================================================================
--- stable/11/sys/arm/samsung/exynos/exynos5_pad.c Mon Sep 2 00:29:14 2019 (r351674)
+++ stable/11/sys/arm/samsung/exynos/exynos5_pad.c Mon Sep 2 00:29:16 2019 (r351675)
@@ -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-stable
mailing list