diff options
author | Kunwu Chan <[email protected]> | 2024-01-19 14:07:14 +0800 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2024-01-23 11:22:42 +0100 |
commit | b6eda11c44dc89a681e1c105f0f4660e69b1e183 (patch) | |
tree | 9f266658dbcdb138be305e8a084f1d88adbd33a1 /tools/perf/scripts/python/libxed.py | |
parent | afa6ac2690bb9904ff883c6e942281e1032a484d (diff) |
HID: nvidia-shield: Add missing null pointer checks to LED initialization
devm_kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure. Ensure the allocation was successful
by checking the pointer validity.
[[email protected]: tweak changelog a bit]
Signed-off-by: Kunwu Chan <[email protected]>
Reviewed-by: Rahul Rameshbabu <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions