watchdog: pcwd_usb: overflow in usb_pcwd_send_command()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Nov 2013 09:24:19 +0000 (01:24 -0800)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 17 Nov 2013 18:42:18 +0000 (19:42 +0100)
commitab5bbdc7015bb35c364ad5f3c955736b17d1acb6
tree2a224d7e8fab995a5f8f39f353d1ca13abdc32cc
parent0859ffc3b3cb673ac1d3f33b0265cf60d1e3836d
watchdog: pcwd_usb: overflow in usb_pcwd_send_command()

We changed "buf" from being an array of 6 chars to being a pointer this
sizeof(buf) needs to be updated as well.

Fixes: 2ddb8089a7e5 ('watchdog: pcwd_usb: Use allocated buffer for usb_control_msg')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/pcwd_usb.c