summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-nvidia-shield.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-nvidia-shield.c')
-rw-r--r--drivers/hid/hid-nvidia-shield.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/hid/hid-nvidia-shield.c b/drivers/hid/hid-nvidia-shield.c
index 58b15750dbb0..ff9078ad1961 100644
--- a/drivers/hid/hid-nvidia-shield.c
+++ b/drivers/hid/hid-nvidia-shield.c
@@ -283,7 +283,9 @@ static struct input_dev *shield_haptics_create(
return haptics;
input_set_capability(haptics, EV_FF, FF_RUMBLE);
- input_ff_create_memless(haptics, NULL, play_effect);
+ ret = input_ff_create_memless(haptics, NULL, play_effect);
+ if (ret)
+ goto err;
ret = input_register_device(haptics);
if (ret)