Skip to content

Commit

Permalink
W1: fix memset size error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Li Zefan authored and Linus Torvalds committed Nov 15, 2007
1 parent 3cc2c17 commit e9b5a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/w1/masters/ds2490.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e9b5a49

Please sign in to comment.