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)
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
 iQIcBAABCAAGBQJWbYBaAAoJEFSFNJnE9BaI13sP/A9ghkwGC+ZzQlIOOPG6tmNA
 T1EHGkH/8U4k7T/t3zZcoCj2OdGTM3qp9nbVz1F1z8MGXumN36wo1KonWPSRB+lN
 h0aX4WMGQYvFzytvfXoBJWU+4tThG0TlIpbx5w6Av6iku41yQTVPt4I6bEu2ZA4S
 1dYfrHqzU3jKU7glX0P+PeVqpRMuT25iECpvMmBkgiRtwwjBN8iKjZqSWb0Zi0TG
 c5+YiQFlcmtvZBWdyBtC72hImBQftebjIetJmLp1Oa/H/FyMKYhGT8MuQKOnrudE
 C8gB+oncBxU9Vf3U5eeKnOzCxh9ZmZuqH8gov1FiwogMlBYRuRYfciP/nm+t5PsY
 ZIOkX2Rw464PzvQ5QHCt36j97qXkMvAM1YD8dV1epKehJThvjdtR+7lvs00MI+Wa
 Zn41ICfoNhAZ8NIpM2FVKhB39ynLD42W4idrypAU1qWJ/jcR6gYefFh7nrft48PV
 IBCrF0PWRJSpim1H1QvJE/IKSVmuSKZChVO4ZA5GLiCYxMI4nqC5zDFyX7dW+Af2
 i9bHYBhxVxckzs5bAz9wS3JTzL7SzyqFSGLzGxDD7hOQhYMHearN8GoXc06lbcJS
 T22lVjEjslD+uGzUDKQCWnUDW3XjOtmh7AIPS6LnKkl2nOONPuE63bLTxWkXWJtd
 Wyt27mSbyGqw5Bo0Or0U
 =MxIN
 -----END PGP SIGNATURE-----

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)
This commit is contained in:
Greg Kroah-Hartman 2015-12-26 17:07:06 -08:00
commit f744c423ca

View File

@ -43,7 +43,7 @@ int adis_update_scan_mode(struct iio_dev *indio_dev,
return -ENOMEM;
rx = adis->buffer;
tx = rx + indio_dev->scan_bytes;
tx = rx + scan_count;
spi_message_init(&adis->msg);