aboutsummaryrefslogtreecommitdiffstats
path: root/net/mpls
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2015-05-06 15:09:40 +0200
committerDavid S. Miller <davem@davemloft.net>2015-05-09 16:46:18 -0400
commit3e4336a65ab6b45cbac10b8347c8f8951fec515d (patch)
treeebfc4cd7b8b50fb768acd181bdeee24badfb9bbc /net/mpls
parentnetxen_nic: use spin_[un]lock_bh around tx_clean_lock (2) (diff)
downloadlinux-dev-3e4336a65ab6b45cbac10b8347c8f8951fec515d.tar.xz
linux-dev-3e4336a65ab6b45cbac10b8347c8f8951fec515d.zip
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>
Diffstat (limited to 'net/mpls')
0 files changed, 0 insertions, 0 deletions