aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-10-17 15:33:01 +0300
committerDavid S. Miller <davem@davemloft.net>2017-10-19 13:04:32 +0100
commitfa31f0c98d64212b2b2b4a1e6d887208b6acb2d9 (patch)
treec859f811605bde3ceb13e06885d12845b0f39b9e /net
parent9a03c3d398c17eadfc5bc470c1084beb71c088f1 (diff)
downloadkernel_replicant_linux-fa31f0c98d64212b2b2b4a1e6d887208b6acb2d9.tar.gz
kernel_replicant_linux-fa31f0c98d64212b2b2b4a1e6d887208b6acb2d9.tar.bz2
kernel_replicant_linux-fa31f0c98d64212b2b2b4a1e6d887208b6acb2d9.zip
thunderbolt: Right shifting to zero bug in tbnet_handle_packet()
There is a problem when we do: sequence = pkg->hdr.length_sn & TBIP_HDR_SN_MASK; sequence >>= TBIP_HDR_SN_SHIFT; TBIP_HDR_SN_SHIFT is 27, and right shifting a u8 27 bits is always going to result in zero. The fix is to declare these variables as u32. Fixes: e69b6c02b4c3 ("net: Add support for networking over Thunderbolt cable") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Yehezkel Bernat <yehezkel.bernat@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions