lkml.org 
[lkml]   [2010]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] acecad: fix incorrect size parameter in usb_buffer_free
The size allocated by usb_buffer_alloc is 8, however the size free by
usb_buffer_free in usb_acecad_disconnect is 10.
This patch corrects the size parameter in usb_buffer_free.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Greg KH <gregkh@suse.de>
---
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 670c61c..265753c 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);
}
}
--
1.5.4.3

\
 
 \ /
  Last update: 2010-04-21 03:09    [W:0.170 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site