[PATCH v7 3/4] i2c: add param sanity check to i2c_transfer()

Ard Biesheuvel ard.biesheuvel at linaro.org
Wed Apr 4 14:01:45 PDT 2018


On 4 April 2018 at 20:38, Wolfram Sang <wsa at the-dreams.de> wrote:
> On Tue, Apr 03, 2018 at 09:11:50PM +0200, Ard Biesheuvel wrote:
>> The API docs describe i2c_transfer() as taking a pointer to an array
>> of i2c_msg containing at least 1 entry, but leaves it to the individual
>> drivers to sanity check the msgs and num parameters. Let's do this in
>> core code instead.
>>
>> Signed-off-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>
>
> Looks good but I want to test it myself, so I will include it in my
> second pull request later.
>

Thanks Wolfram



More information about the linux-arm-kernel mailing list