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

Ard Biesheuvel ard.biesheuvel at linaro.org
Tue Apr 3 09:56:45 PDT 2018


On 3 April 2018 at 17:03, Wolfram Sang <wsa at the-dreams.de> wrote:
>> +     if (!msgs || num < 1)
>> +             return -EINVAL;
>
> I think this case justifies WARN (or WARN_ON, I always mix them up).
>

OK.



More information about the linux-arm-kernel mailing list