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:
Ed Maste 2019-08-30 00:36:17 +00:00
parent b2f68d35aa
commit ec8416f76d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351619

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);
}