projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5691d7
)
[PATCH] USB: fix buffer size limiting in skeleton driver
author
Olav Kongas
<ok@artecdesign.ee>
Thu, 22 Dec 2005 10:44:52 +0000
(12:44 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 4 Jan 2006 21:51:45 +0000
(13:51 -0800)
Fix buffer size limiting.
Signed-off-by: Olav Kongas <ok@artecdesign.ee>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/usb-skeleton.c
patch
|
blob
|
history
diff --git
a/drivers/usb/usb-skeleton.c
b/drivers/usb/usb-skeleton.c
index
719d23a
..
b6652ef
100644
(file)
--- a/
drivers/usb/usb-skeleton.c
+++ b/
drivers/usb/usb-skeleton.c
@@
-166,7
+166,7
@@
static ssize_t skel_write(struct file *file, const char *user_buffer, size_t cou
int retval = 0;
struct urb *urb = NULL;
char *buf = NULL;
- size_t writesize = m
ax
(count, MAX_TRANSFER);
+ size_t writesize = m
in
(count, MAX_TRANSFER);
dev = (struct usb_skel *)file->private_data;