svn commit: r351619 - head/sys/arm/samsung/exynos
Ed Maste
emaste at FreeBSD.org
Fri Aug 30 00:36:18 UTC 2019
Author: emaste
Date: Fri Aug 30 00:36:17 2019
New Revision: 351619
URL: https://svnweb.freebsd.org/changeset/base/351619
Log:
exynos5: avoid NULL deref in error case
Reported by: Dr Silvio Cesare of InfoSect
MFC after: 3 days
MFC with: r351618
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/arm/samsung/exynos/exynos5_pad.c
Modified: head/sys/arm/samsung/exynos/exynos5_pad.c
==============================================================================
--- head/sys/arm/samsung/exynos/exynos5_pad.c Fri Aug 30 00:34:27 2019 (r351618)
+++ head/sys/arm/samsung/exynos/exynos5_pad.c Fri Aug 30 00:36:17 2019 (r351619)
@@ -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