Skip to content

Commit

Permalink
Input: wacom - fix error path in wacom_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Strakh authored and Dmitry Torokhov committed Feb 11, 2011
1 parent 0fbc9fd commit 4b6d443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/tablet/wacom_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4b6d443

Please sign in to comment.