[PATCH 4.8 067/125] iio: ad5755: fix off-by-one on devnr limit check

2016-10-29 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Colin Ian King commit 9d47964bfd471f0dd4c89f28556aec68bffa0020 upstream. The comparison for devnr limits is off-by-one, the current check allows 0 to

[PATCH 4.8 067/125] iio: ad5755: fix off-by-one on devnr limit check

2016-10-29 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Colin Ian King commit 9d47964bfd471f0dd4c89f28556aec68bffa0020 upstream. The comparison for devnr limits is off-by-one, the current check allows 0 to AD5755_NUM_CHANNELS and the limit should