diff options
author | Kunwu Chan <chentao@kylinos.cn> | 2024-01-19 07:07:14 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2024-01-23 11:22:42 +0100 |
commit | b6eda11c44dc89a681e1c105f0f4660e69b1e183 (patch) | |
tree | 9f266658dbcdb138be305e8a084f1d88adbd33a1 /drivers/hid/hid-ids.h | |
parent | HID: logitech-hidpp: add support for Logitech G Pro X Superlight 2 (diff) | |
download | linux-b6eda11c44dc89a681e1c105f0f4660e69b1e183.tar.xz linux-b6eda11c44dc89a681e1c105f0f4660e69b1e183.zip |
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.
[jkosina@suse.com: tweak changelog a bit]
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'drivers/hid/hid-ids.h')
0 files changed, 0 insertions, 0 deletions