Commit e60d556
bus: fsl-mc: Check return value of platform_get_resource()
commit 25f5265 upstream.
platform_get_resource() returns NULL in case of failure, so check its
return value and propagate the error in order to prevent NULL pointer
dereference.
Fixes: 6305166 ("bus: fsl-mc: Add ACPI support for fsl-mc")
Cc: [email protected]
Signed-off-by: Salah Triki <[email protected]>
Acked-by: Ioana Ciornei <[email protected]>
Link: https://lore.kernel.org/r/aKwuK6TRr5XNYQ8u@pc
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent ba7f7c2 commit e60d556
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1172 | 1172 | | |
1173 | 1173 | | |
1174 | 1174 | | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
1175 | 1178 | | |
1176 | 1179 | | |
1177 | 1180 | | |
| |||
0 commit comments