diff options
author | Krzysztof Kozlowski <[email protected]> | 2021-04-07 17:43:57 +0200 |
---|---|---|
committer | Krzysztof Kozlowski <[email protected]> | 2021-04-13 16:55:02 +0200 |
commit | 59e27d7c94aa02da039b000d33c304c179395801 (patch) | |
tree | ba7c489b4009fcdafdd64324d0ea4425b24792bb /scripts/gdb/linux/tasks.py | |
parent | 25dcca7fedcd4e31cb368ad846bfd738c0c6307c (diff) |
memory: renesas-rpc-if: fix possible NULL pointer dereference of resource
The platform_get_resource_byname() can return NULL which would be
immediately dereferenced by resource_size(). Instead dereference it
after validating the resource.
Addresses-Coverity: Dereference null return value
Fixes: ca7d8b980b67 ("memory: add Renesas RPC-IF driver")
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions