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:
parent
98a4ec13e0
commit
77353c9cf8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user