g; Wolfram Sang engineering.com>; Vadim Pasternak ; Michael Shych
> ; Wolfram Sang ; linux-
> ker...@vger.kernel.org
> Subject: [RFC PATCH 1/2] i2c: mlxcpld: check correct size of maximum RECV_LEN
> packet
>
> I2C_SMBUS_BLOCK_MAX defines already the maximum number as defined in
I2C_SMBUS_BLOCK_MAX defines already the maximum number as defined in the
SMBus 2.0 specs. I don't see a reason to add 1 here. Also, fix the errno
to what is suggested for this error.
Fixes: c9bfdc7c16cb ("i2c: mlxcpld: Add support for smbus block read
transaction")
Signed-off-by: Wolfram Sang
2 matches
Mail list logo