mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] acecad: fix incorrect size parameter in usb_buffer_free
@ 2010-04-21  1:07 Axel Lin
  2010-04-21  4:59 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2010-04-21  1:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: Edouard TISSERANT, Dmitry Torokhov, Greg KH

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-21  4:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-21  1:07 [PATCH] acecad: fix incorrect size parameter in usb_buffer_free Axel Lin
2010-04-21  4:59 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®