packet: Fix undefined behavior in bit shift
authorJiunn Chang <c0d1n61at3@gmail.com>
Thu, 27 Jun 2019 03:25:30 +0000 (22:25 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Jun 2019 18:06:17 +0000 (11:06 -0700)
commit79293f49677e2e703ef0d0efc9919319adacb3fb
tree76e8a78b1f2caf098a963d65265be98d176b9d08
parentb60a77386b1d4868f72f6353d35dabe5fbe981f2
packet: Fix undefined behavior in bit shift

Shifting signed 32-bit value by 31 bits is undefined.  Changing most
significant bit to unsigned.

Changes included in v2:
  - use subsystem specific subject lines
  - CC required mailing lists

Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/if_packet.h