Jason A. Donenfeld 3e4336a65a usbnet: avoid integer overflow in start_xmit
transfer_buffer_length is of type u32. It's therefore wrong to assign it
to a signed integer. This patch avoids the overflow.

It's worth noting that entry->length here is a long; perhaps it would be
beneficial at somepoint to change this to be unsigned as well, if
nothing else relies on its signedness for error conditions or the like.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-05-09 16:46:18 -04:00
..
2015-03-02 16:43:41 -05:00
2015-04-01 12:43:09 -04:00
2015-04-01 22:52:29 -04:00
2015-04-07 15:21:55 -04:00
2015-04-11 22:29:40 -04:00
2015-04-02 14:05:01 -04:00
2015-04-22 18:45:49 -04:00