From: Jason A. Donenfeld Date: Wed, 6 May 2015 13:09:40 +0000 (+0200) Subject: usbnet: avoid integer overflow in start_xmit X-Git-Tag: omap-for-v4.2/wakeirq-drivers~2^2~30^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e4336a65ab6b45cbac10b8347c8f8951fec515d;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed