staging: iio: adc: max1363: prevent buffer overflow
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 6 Oct 2010 14:15:37 +0000 (16:15 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Oct 2010 15:21:28 +0000 (08:21 -0700)
commite1517c00da6d35911b6451f886d55e22d56393ad
treee6f3685efd736167ee0137aa305e102a39600c11
parent858f1ccff123469fb4257e2529ef8783aabf3b62
staging: iio: adc: max1363: prevent buffer overflow

ring->access.read_last() reads the entire datum from
the ring including padding and time stamp.

Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/max1363_ring.c