UPSTREAM: 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>
(cherry picked from commit fe23b6bbeac40de957724b90a88d46fb336e29a9)

BUG=b:236756495
TEST=Manual test with Nintendo Gamepad controller

Signed-off-by: nergi <nergi@google.com>
Change-Id: Ibc79ca122346d7b8371db9648305bd5e7926019e
1 file changed