summaryrefslogtreecommitdiff
path: root/include/linux/gpio/consumer.h
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@gmail.com>2022-02-25 06:41:10 +0300
committerJiri Kosina <jkosina@suse.cz>2022-03-01 17:56:43 +0300
commitfe23b6bbeac40de957724b90a88d46fb336e29a9 (patch)
treec587549ac8c6b1038064a014a07e2cb441b415e5 /include/linux/gpio/consumer.h
parentcc71d37fd1f11e0495b1cf580909ebea37eaa886 (diff)
downloadlinux-fe23b6bbeac40de957724b90a88d46fb336e29a9.tar.xz
HID: nintendo: check the return value of alloc_workqueue()
The function alloc_workqueue() in nintendo_hid_probe() can fail, but there is no check of its return value. To fix this bug, its return value should be checked with new error handling code. Fixes: c4eae84feff3e ("HID: nintendo: add rumble support") Reported-by: TOTE Robot <oslab@tsinghua.edu.cn> Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com> Reviewed-by: Silvan Jegen <s.jegen@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/gpio/consumer.h')
0 files changed, 0 insertions, 0 deletions