diff options
| author | Salah Triki <salah.triki@gmail.com> | 2025-08-25 12:34:35 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-15 13:04:22 +0300 |
| commit | 2ead548473f58c7960b6b939b79503c4a0a2c0bd (patch) | |
| tree | 9138553cd6d8a22a7262b984fae405dc5ce0afa2 /scripts/gdb/linux/xarray.py | |
| parent | b7e0535060a60cc99eafc19cc665d979714cd73a (diff) | |
| download | linux-2ead548473f58c7960b6b939b79503c4a0a2c0bd.tar.xz | |
bus: fsl-mc: Check return value of platform_get_resource()
commit 25f526507b8ccc6ac3a43bc094d09b1f9b0b90ae 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: 6305166c8771 ("bus: fsl-mc: Add ACPI support for fsl-mc")
Cc: stable@vger.kernel.org
Signed-off-by: Salah Triki <salah.triki@gmail.com>
Acked-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/aKwuK6TRr5XNYQ8u@pc
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions
