From: Alexander Strakh Date: Fri, 11 Feb 2011 08:44:41 +0000 (-0800) Subject: Input: wacom - fix error path in wacom_probe() X-Git-Tag: firefly_0821_release~176^2~541^2~455 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4b6d44344000ff3e62faf595e5f89fd8d9e52a94;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: Henrik Rydberg Signed-off-by: Dmitry Torokhov --- 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);