net: dev: Use unsigned integer as an argument to left-shift
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 27 Feb 2019 10:37:26 +0000 (13:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:35:14 +0000 (15:35 +0100)
commit6b2540ebc763fd76e7564e798e9ec2be97f769ae
tree4a18f6ee52e1b6a417d532f2f03975270bb88c06
parent5b0b56d8028fe6c332e98b0166a1769f526717a4
net: dev: Use unsigned integer as an argument to left-shift

[ Upstream commit f4d7b3e23d259c44f1f1c39645450680fcd935d6 ]

1 << 31 is Undefined Behaviour according to the C standard.
Use U type modifier to avoid theoretical overflow.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/netdevice.h