summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-ids.h
diff options
context:
space:
mode:
authorKunwu Chan <chentao@kylinos.cn>2024-01-19 07:07:14 +0100
committerJiri Kosina <jkosina@suse.com>2024-01-23 11:22:42 +0100
commitb6eda11c44dc89a681e1c105f0f4660e69b1e183 (patch)
tree9f266658dbcdb138be305e8a084f1d88adbd33a1 /drivers/hid/hid-ids.h
parentHID: logitech-hidpp: add support for Logitech G Pro X Superlight 2 (diff)
downloadlinux-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