pegasus: fixes URB buffer allocation size;
authorPetko Manolov <petkan@mip-labs.com>
Wed, 27 Apr 2016 11:24:49 +0000 (14:24 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2016 21:05:24 +0000 (17:05 -0400)
commitb7302ca05871e50208bc328cbc8199a21f5d876e
treec4b16a2f810dfd19988d1fc33d6f86ecfa331f25
parent6c76f3d2922115f4e1327a2dcce47e94453e3375
pegasus: fixes URB buffer allocation size;

usb_fill_bulk_urb() receives buffer length parameter 8 bytes larger
than what's allocated by alloc_skb(); This seems to be a problem with
older (pegasus usb-1.1) devices, which may silently return more data
than the maximal packet length.

Reported-by: Lincoln Ramsay <a1291762@gmail.com>
Signed-off-by: Petko Manolov <petkan@mip-labs.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/pegasus.c