From: Axel Lin Date: Wed, 21 Apr 2010 04:53:11 +0000 (-0700) Subject: Input: acecad - fix incorrect size parameter in usb_buffer_free X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2ef2ed597669f5e120d0c51c295f00e34b2f0801;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: acecad - fix incorrect size parameter in usb_buffer_free The size allocated by usb_buffer_alloc() is 8, however the size passed to usb_buffer_free() in usb_acecad_disconnect() is 10. Signed-off-by: Axel Lin Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/tablet/acecad.c b/drivers/input/tablet/acecad.c index 670c61c5a516..265753c76304 100644 --- a/drivers/input/tablet/acecad.c +++ b/drivers/input/tablet/acecad.c @@ -256,7 +256,7 @@ static void usb_acecad_disconnect(struct usb_interface *intf) usb_kill_urb(acecad->irq); input_unregister_device(acecad->input); usb_free_urb(acecad->irq); - usb_buffer_free(interface_to_usbdev(intf), 10, acecad->data, acecad->data_dma); + usb_buffer_free(interface_to_usbdev(intf), 8, acecad->data, acecad->data_dma); kfree(acecad); } }