Re: [PATCH] hwmon: (ads1015) Fix off-by-one for valid channel index checking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2014-07-30 11:28 GMT+08:00 Guenter Roeck <linux@xxxxxxxxxxxx>:
> On 07/29/2014 08:13 PM, Axel Lin wrote:
>>
>> Current code uses channel as array index, so the valid channel value is
>> 0 .. ADS1015_CHANNELS - 1.
>>
>> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>
>
>
> Amazing. How do you find this stuff ?
I just read the code. :-)

Axel

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux