[Linux-stable-mirror] [PATCH 4.14 023/164] iio: adc: cpcap: fix incorrect validation