HID: nvidia-shield: Add missing check for input_ff_create_memless
authorChen Ni <nichen@iscas.ac.cn>
Wed, 15 May 2024 03:30:51 +0000 (11:30 +0800)
committerJiri Kosina <jkosina@suse.com>
Thu, 23 May 2024 12:17:22 +0000 (14:17 +0200)
commit0a3f9f7fc59feb8a91a2793b8b60977895c72365
treeafd8329a26af8c85b18ca2f28de87fc1bd35eac1
parent2360497238261f17d4a3f6cbc02d6dbd8951c23c
HID: nvidia-shield: Add missing check for input_ff_create_memless

Add check for the return value of input_ff_create_memless() and return
the error if it fails in order to catch the error.

Fixes: 09308562d4af ("HID: nvidia-shield: Initial driver implementation with Thunderstrike support")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-nvidia-shield.c