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
This commit is contained in:
emaste 2019-08-30 00:36:17 +00:00
parent 98a4ec13e0
commit 77353c9cf8

View File

@ -410,7 +410,7 @@ pad_setup_intr(int gpio_number, void (*ih)(void *), void *ih_user)
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);
}