From: Axel Lin <axel.lin@gmail.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Cc: Edouard TISSERANT <edouard.tisserant@wanadoo.fr>,
Dmitry Torokhov <dtor@mail.ru>, Greg KH <gregkh@suse.de>
Subject: [PATCH] acecad: fix incorrect size parameter in usb_buffer_free
Date: Wed, 21 Apr 2010 09:07:14 +0800 [thread overview]
Message-ID: <m2i427d64721004201807z2888dd31oc1c54b61fb2d8078@mail.gmail.com> (raw)
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
next reply other threads:[~2010-04-21 1:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 1:07 Axel Lin [this message]
2010-04-21 4:59 ` Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2i427d64721004201807z2888dd31oc1c54b61fb2d8078@mail.gmail.com \
--to=axel.lin@gmail.com \
--cc=dtor@mail.ru \
--cc=edouard.tisserant@wanadoo.fr \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®