Re: [PATCH] iio: chemical: ags02ma: Check for short I2C reads

From: Joshua Crofts

Date: Thu Oct 15 2026 - 10:03:58 EST


On Tue, 13 Oct 2026 22:47:26 +0530
Nikhil Gautam <nikhilgtr@xxxxxxxxx> wrote:

> Check that the I2C receive operation transfers the expected number
> of bytes before accessing the received data.
>
> Return -EIO if the transfer is incomplete.
>
> Signed-off-by: Nikhil Gautam <nikhilgtr@xxxxxxxxx>
> ---

Fine by me. This is more hardening than a fix so no need for a
fixes tag.

Reviewed-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>

--
Kind regards,
Joshua Crofts