Files
linux/drivers
Dan Carpenter fa31f0c98d 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: e69b6c02b4 ("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>
2017-10-19 13:04:32 +01:00
..
2017-10-04 17:34:41 +01:00
2017-10-04 17:11:53 -07:00
2017-09-29 14:19:44 +10:00
2017-08-29 13:46:35 +02:00
2017-08-22 11:04:51 -07:00
2017-10-19 12:46:43 +01:00
2017-08-30 14:03:42 -06:00
2017-08-24 09:57:28 +02:00