aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/input/usbtouchscreen.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/input/usbtouchscreen.c')
-rw-r--r--drivers/usb/input/usbtouchscreen.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/input/usbtouchscreen.c b/drivers/usb/input/usbtouchscreen.c
index e0829413336b..8e18e6c64777 100644
--- a/drivers/usb/input/usbtouchscreen.c
+++ b/drivers/usb/input/usbtouchscreen.c
@@ -668,9 +668,8 @@ static void usbtouch_close(struct input_dev *input)
668static void usbtouch_free_buffers(struct usb_device *udev, 668static void usbtouch_free_buffers(struct usb_device *udev,
669 struct usbtouch_usb *usbtouch) 669 struct usbtouch_usb *usbtouch)
670{ 670{
671 if (usbtouch->data) 671 usb_buffer_free(udev, usbtouch->type->rept_size,
672 usb_buffer_free(udev, usbtouch->type->rept_size, 672 usbtouch->data, usbtouch->data_dma);
673 usbtouch->data, usbtouch->data_dma);
674 kfree(usbtouch->buffer); 673 kfree(usbtouch->buffer);
675} 674}
676 675