summaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet
diff options
context:
space:
mode:
authorAlexander Strakh <cromlehg@gmail.com>2011-02-11 09:44:41 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-02-11 10:01:15 +0100
commit4b6d44344000ff3e62faf595e5f89fd8d9e52a94 (patch)
tree57232a2d76f4a72019c46f8099203c1db0681535 /drivers/input/tablet
parentInput: ads7846 - check proper condition when freeing gpio (diff)
downloadlinux-4b6d44344000ff3e62faf595e5f89fd8d9e52a94.tar.xz
linux-4b6d44344000ff3e62faf595e5f89fd8d9e52a94.zip
Input: wacom - fix error path in wacom_probe()
If we fail to retrieve HID descriptor we need to free allocated URB so jump to proper label to do that. Signed-off-by: Alexander Strakh <strakh@ispras.ru> Acked-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/tablet')
-rw-r--r--drivers/input/tablet/wacom_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c
index fc381498b798..cf8fb9f5d4a8 100644
--- a/drivers/input/tablet/wacom_sys.c
+++ b/drivers/input/tablet/wacom_sys.c
@@ -519,7 +519,7 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i
/* Retrieve the physical and logical size for OEM devices */
error = wacom_retrieve_hid_descriptor(intf, features);
if (error)
- goto fail2;
+ goto fail3;
wacom_setup_device_quirks(features);