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:
3cc2c17
)
W1: fix memset size error
author
Li Zefan
<lizf@cn.fujitsu.com>
Thu, 15 Nov 2007 00:58:34 +0000
(16:58 -0800)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Thu, 15 Nov 2007 02:45:36 +0000
(18:45 -0800)
The size argument passed to memset is wrong.
Signed-off-by Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/w1/masters/ds2490.c
patch
|
blob
|
history
diff --git
a/drivers/w1/masters/ds2490.c
b/drivers/w1/masters/ds2490.c
index
299e274
..
b63b5e0
100644
(file)
--- a/
drivers/w1/masters/ds2490.c
+++ b/
drivers/w1/masters/ds2490.c
@@
-233,7
+233,7
@@
static int ds_recv_status_nodump(struct ds_device *dev, struct ds_status *st,
{
int count, err;
- memset(st, 0, sizeof(st));
+ memset(st, 0, sizeof(
*
st));
count = 0;
err = usb_bulk_msg(dev->udev, usb_rcvbulkpipe(dev->udev, dev->ep[EP_STATUS]), buf, size, &count, 100);