diff options
author | Rui Miguel Silva <[email protected]> | 2024-03-25 22:09:55 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-03-26 09:26:47 +0100 |
commit | a1ba19a1ae7cd1e324685ded4ab563e78fe68648 (patch) | |
tree | 05886cdd86531210f56c30d504cb77b92adca04b /tools/perf/scripts/python/task-analyzer.py | |
parent | d9c60badccc183eb971e0941bb86f9475d4b9551 (diff) |
greybus: lights: check return of get_channel_from_mode
If channel for the given node is not found we return null from
get_channel_from_mode. Make sure we validate the return pointer
before using it in two of the missing places.
This was originally reported in [0]:
Found by Linux Verification Center (linuxtesting.org) with SVACE.
[0] https://lore.kernel.org/all/[email protected]
Fixes: 2870b52bae4c ("greybus: lights: add lights implementation")
Reported-by: Mikhail Lobanov <[email protected]>
Suggested-by: Mikhail Lobanov <[email protected]>
Suggested-by: Alex Elder <[email protected]>
Signed-off-by: Rui Miguel Silva <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions