diff options
| author | Colin Ian King <[email protected]> | 2021-04-06 19:45:10 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-04-09 16:02:26 +0200 |
| commit | 9c2076090c2815fe7c49676df68dde7e60a9b9fc (patch) | |
| tree | 9d120282c0fa7f2e313a8f409ebcb1970457d37a /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 782de5e7190de0a773417708e17d9461d9109bf9 (diff) | |
usb: gadget: r8a66597: Add missing null check on return from platform_get_resource
The call to platform_get_resource can potentially return a NULL pointer
on failure, so add this check and return -EINVAL if it fails.
Fixes: c41442474a26 ("usb: gadget: R8A66597 peripheral controller support.")
Signed-off-by: Colin Ian King <[email protected]>
Addresses-Coverity: ("Dereference null return")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions