alistair23-linux/drivers/staging/iio
Colin Ian King 13ffe9a26d 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: 2919fa54ef ("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>
2017-09-30 21:13:34 +01:00
..
accel
adc staging: iio: ad7192: Fix - use the dedicated reset function avoiding dma from stack. 2017-09-24 16:58:37 +01:00
addac
cdc staging: iio: ad7152: Fix deadlock in ad7152_write_raw_samp_freq() 2017-05-28 15:45:46 +01:00
Documentation
frequency
gyro
impedance-analyzer
light staging: iio: tsl2x7x: check return value from tsl2x7x_invoke_change() 2017-07-09 18:46:25 +01:00
meter staging: iio: ade7759: fix signed extension bug on shift of a u8 2017-09-30 21:13:34 +01:00
resolver staging:iio:resolver:ad2s1210 fix negative IIO_ANGL_VEL read 2017-07-15 12:41:54 +01:00
trigger
Kconfig
Makefile
TODO