iio: dac: ad5592r: Off by one bug in ad5592r_alloc_channels()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 29 Apr 2016 09:03:31 +0000 (12:03 +0300)
committerJonathan Cameron <jic23@kernel.org>
Wed, 4 May 2016 09:52:43 +0000 (10:52 +0100)
commit04bf02175fe9577875fb8285cc2d08169fef613a
tree9bd4c2b87fa0124f91a29eea7b3dfdb39fd586fb
parentc25d3f37be016b301f446a5257645c4845daf53c
iio: dac: ad5592r: Off by one bug in ad5592r_alloc_channels()

The > here should be >= or we go beyond the end for the array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/ad5592r-base.c