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);
        }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to