aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/hw_breakpoint_constraints.c
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@gmail.com>2022-02-24 19:41:10 -0800
committerJiri Kosina <jkosina@suse.cz>2022-03-01 15:56:43 +0100
commitfe23b6bbeac40de957724b90a88d46fb336e29a9 (patch)
treec587549ac8c6b1038064a014a07e2cb441b415e5 /arch/powerpc/kernel/hw_breakpoint_constraints.c
parentcc71d37fd1f11e0495b1cf580909ebea37eaa886 (diff)
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 'arch/powerpc/kernel/hw_breakpoint_constraints.c')
0 files changed, 0 insertions, 0 deletions