exynos5: avoid NULL deref in error case
Reported by: Dr Silvio Cesare of InfoSect MFC after: 3 days Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
13c73428dc
commit
b2f68d35aa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351618
@ -314,7 +314,7 @@ combiner_setup_intr(char *source_name, void (*ih)(void *), void *ih_user)
|
|||||||
sc = combiner_sc;
|
sc = combiner_sc;
|
||||||
|
|
||||||
if (sc == NULL) {
|
if (sc == NULL) {
|
||||||
device_printf(sc->dev, "Error: combiner is not attached\n");
|
printf("%s: error: combiner is not attached\n", __func__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user