diff options
author | Jia-Ju Bai <[email protected]> | 2022-02-24 19:41:10 -0800 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2022-03-01 15:56:43 +0100 |
commit | fe23b6bbeac40de957724b90a88d46fb336e29a9 (patch) | |
tree | c587549ac8c6b1038064a014a07e2cb441b415e5 /lib/test_overflow.c | |
parent | cc71d37fd1f11e0495b1cf580909ebea37eaa886 (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 <[email protected]>
Signed-off-by: Jia-Ju Bai <[email protected]>
Reviewed-by: Silvan Jegen <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions