Re: [PATCH] Fixes buffer allocation size and the actual packet length;

2016-04-26 Thread David Miller
Submitting a cover letter and the patch itself with identical Subject lines is not correct. You must also use proper "[PATCH $(TREE) X/Y] " prefixes in your Subject lines as well. Please format your Subject lines correctly and resubmit, thank you.

[PATCH] Fixes buffer allocation size and the actual packet length;

2016-04-26 Thread Petko Manolov
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. Going through the chip's documentation i figured out the

[PATCH] Fixes buffer allocation size and the actual packet length;

2016-04-26 Thread Petko Manolov
As noticed by Lincoln Ramsay some old (usb 1.1) Pegasus based devices may actually return more bytes than the specified in the datasheet amount. That would not be a problem if the allocated space for the SKB was equal to the parameter passed to usb_fill_bulk_urb(). Some