Skip to content

Commit f744c42

Browse files
committed
Merge tag 'iio-fixes-for-4.4c' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-linus
Jonathan writes: 3rd set of IIO fixes for the 4.4 cycle. Only a single fix this time and for a bug that's been in the kernel since around about the start of 2013 (so no rush!) * Out-of-bounds memory access in adis core (Analog Devices IMUs)
2 parents 9f9499a + d590faf commit f744c42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/imu/adis_buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ int adis_update_scan_mode(struct iio_dev *indio_dev,
4343
return -ENOMEM;
4444

4545
rx = adis->buffer;
46-
tx = rx + indio_dev->scan_bytes;
46+
tx = rx + scan_count;
4747

4848
spi_message_init(&adis->msg);
4949

0 commit comments

Comments
 (0)