Input: acecad - fix incorrect size parameter in usb_buffer_free
authorAxel Lin <axel.lin@gmail.com>
Wed, 21 Apr 2010 04:53:11 +0000 (21:53 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 21 Apr 2010 05:34:09 +0000 (22:34 -0700)
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 <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/tablet/acecad.c

index 670c61c5a5167b4d10276c2d3399a26c37bb0c9b..265753c7630426632e1685a2807a2adbc82da5a9 100644 (file)
@@ -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);
        }
 }