nl80211: Fix undefined behavior in bit shift
authorJiunn Chang <c0d1n61at3@gmail.com>
Thu, 27 Jun 2019 05:04:26 +0000 (00:04 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 28 Jun 2019 14:07:54 +0000 (16:07 +0200)
commitd2ce8d6bfcfed014fd281e06c9b1d4638ddf3f1e
tree2c158d0ba034187e0d07af500a6bedf19fa4d063
parent556e2f6020bf90f63c5dd65e9a2254be6db3185b
nl80211: Fix undefined behavior in bit shift

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

Signed-off-by: Jiunn Chang <c0d1n61at3@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/uapi/linux/nl80211.h