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: v2.6.38-rc5~12^2~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=4b6d44344000ff3e62faf595e5f89fd8d9e52a94;p=~emulex%2Finfiniband.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 fc381498b79..cf8fb9f5d4a 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);