Commit 25f52650 authored by Salah Triki's avatar Salah Triki Committed by Christophe Leroy
Browse files

bus: fsl-mc: Check return value of platform_get_resource()



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: 6305166c ("bus: fsl-mc: Add ACPI support for fsl-mc")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarSalah Triki <salah.triki@gmail.com>
Acked-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/aKwuK6TRr5XNYQ8u@pc


Signed-off-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
parent 8f5ae30d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment