Skip to content

Commit

Permalink
Input: acecad - fix incorrect size parameter in usb_buffer_free
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Dmitry Torokhov committed Apr 21, 2010
1 parent 422dee5 commit 2ef2ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/tablet/acecad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 2ef2ed5

Please sign in to comment.