aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoderick Colenbrander <roderick.colenbrander@sony.com>2016-12-08 22:09:50 -0500
committerJiri Kosina <jkosina@suse.cz>2016-12-19 09:07:37 -0500
commit2b6579d4a71afb19c6583470783371b992944f67 (patch)
treea88edfafb46b6137f5faaa0ed18456bf31a59846
parentc8b1b3dd89ea7b3f77a73e59c4c4495e16338e15 (diff)
HID: sony: Fix error handling bug when touchpad registration fails
The error handling code in sony_input_configured in general uses goto based cleanup. Recently we migrated code from sony_probe to here, but we didn't update the existing touchpad registration code, which was already here to use the goto. Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/hid/hid-sony.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c
index 7687c0875395..f68c921af55e 100644
--- a/drivers/hid/hid-sony.c
+++ b/drivers/hid/hid-sony.c
@@ -2548,7 +2548,7 @@ static int sony_input_configured(struct hid_device *hdev,
2548 hid_err(sc->hdev, 2548 hid_err(sc->hdev,
2549 "Unable to initialize multi-touch slots: %d\n", 2549 "Unable to initialize multi-touch slots: %d\n",
2550 ret); 2550 ret);
2551 return ret; 2551 goto err_stop;
2552 } 2552 }
2553 2553
2554 sony_init_output_report(sc, dualshock4_send_output_report); 2554 sony_init_output_report(sc, dualshock4_send_output_report);