Re: [PATCH] i2c: core: check returned size of emulated smbus block read

From: Wolfram Sang
Date: Sun Jun 28 2020 - 14:22:16 EST



> I saw it with the mv64xxx (Allwinner) and omap (Beaglebone) drivers.
> From a quick look, it seems like quite a few others have the same
> problem.

Okay, well, to be fair, both drivers don't advertise
I2C_SMBUS_BLOCK_DATA. The client driver should check for that. Anyhow,
it makes sense to have your additional check in the core as fallback
safety.

Attachment: signature.asc
Description: PGP signature