diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-04-21 00:53:11 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-04-21 01:34:09 -0400 |
commit | 2ef2ed597669f5e120d0c51c295f00e34b2f0801 (patch) | |
tree | 0915f6ec0508be7eff58eafe2566870398ba48e7 /drivers/input/tablet | |
parent | 422dee56b8155e4627f657ee67e962066ca7aff3 (diff) |
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 <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/tablet')
-rw-r--r-- | drivers/input/tablet/acecad.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
256 | usb_kill_urb(acecad->irq); | 256 | usb_kill_urb(acecad->irq); |
257 | input_unregister_device(acecad->input); | 257 | input_unregister_device(acecad->input); |
258 | usb_free_urb(acecad->irq); | 258 | usb_free_urb(acecad->irq); |
259 | usb_buffer_free(interface_to_usbdev(intf), 10, acecad->data, acecad->data_dma); | 259 | usb_buffer_free(interface_to_usbdev(intf), 8, acecad->data, acecad->data_dma); |
260 | kfree(acecad); | 260 | kfree(acecad); |
261 | } | 261 | } |
262 | } | 262 | } |