hwmon: pm8xxx-adc: Fix Buffer overflow
Use the maximum number of channels added in the
ADC entry list in the board to check for channel
validity. This patch also adds additional checks
in the driver to validate the requested channel.
CRs-Fixed: 339631
Change-Id: I347f0d39a00b6ee12976ec2c24843626b54617d4
Signed-off-by:
Siddartha Mohanadoss <smohanad@codeaurora.org>
Loading
Please sign in to comment