]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Feb 2019 17:34:39 +0000 (09:34 -0800)
commitb06db441c606355b45b90c12671cd26f7aa2fe93
treed6355af1c739be9c4ccbdcaf7b8305a9e456d81c
parente8de9a08a1a7b6ce66b6f69e3115616cc8e79e9a
net: dev: Use unsigned integer as an argument to left-shift

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>
include/linux/netdevice.h