Commit e9b5a495 authored by Li Zefan's avatar Li Zefan Committed by Linus Torvalds
Browse files

W1: fix memset size error

The size argument passed to memset is wrong.

Signed-off-by Li Zefan <>
Acked-by: default avatarEvgeniy Polyakov <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 3cc2c177
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment