Re: [PATCH v5 05/11] i2c: rtl9300: check if xfer length is valid
From: Wolfram Sang
Date: Sun Aug 10 2025 - 01:51:32 EST
On Sat, Aug 09, 2025 at 10:07:06PM +0000, Jonas Jelonek wrote:
> Add an explicit check for the xfer length to 'rtl9300_i2c_config_xfer'
> to make sure a length < 1 or > 16 isn't accepted. While there shouldn't
> be a length > 16 because this is specified in the i2c_adapter_quirks, a
> length of 0 may be passed.
There is another quirk for this: I2C_AQ_NO_ZERO_LEN
With that, you shouldn't need the code here.
Attachment:
signature.asc
Description: PGP signature