summaryrefslogtreecommitdiffstats
path: root/net/openvswitch/vport-netdev.h
diff options
context:
space:
mode:
authorColin Ian King2017-09-13 19:02:02 +0200
committerJonathan Cameron2017-09-30 22:13:34 +0200
commit13ffe9a26df4e156363579b25c904dd0b1e31bfb (patch)
treec198d958abaa131ec9fc41ed7865693981f8c585 /net/openvswitch/vport-netdev.h
parentiio: pressure: zpa2326: Remove always-true check which confuses gcc (diff)
downloadkernel-qcow2-linux-13ffe9a26df4e156363579b25c904dd0b1e31bfb.tar.gz
kernel-qcow2-linux-13ffe9a26df4e156363579b25c904dd0b1e31bfb.tar.xz
kernel-qcow2-linux-13ffe9a26df4e156363579b25c904dd0b1e31bfb.zip
staging: iio: ade7759: fix signed extension bug on shift of a u8
The current shift of st->rx[2] left shifts a u8 24 bits left, promotes the integer to a an int and then to a unsigned u64. If the top bit of st->rx[2] is set then we end up with all the upper bits being set to 1. Fix this by casting st->rx[2] to a u64 before the 24 bit left shift. Detected by CoverityScan CID#144940 ("Unintended sign extension") Fixes: 2919fa54ef64 ("staging: iio: meter: new driver for ADE7759 devices") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'net/openvswitch/vport-netdev.h')
0 files changed, 0 insertions, 0 deletions