]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4b7480a5513b7332b5968b64cad57f33aeeac5b
treec4b16a2f810dfd19988d1fc33d6f86ecfa331f25
parent98eec1c29797148a6138714790574da375954af7
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