Commit 433b99e9 authored by Jonathan Cameron's avatar Jonathan Cameron
Browse files

iio: light: as73211: Ensure buffer holes are zeroed



Given that the buffer is copied to a kfifo that ultimately user space
can read, ensure we zero it.

Fixes: 403e5586 ("iio: light: as73211: New driver")
Reviewed-by: default avatarMatti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: default avatarAndy Shevchenko <andy@kernel.org>
Link: https://patch.msgid.link/20250802164436.515988-2-jic23@kernel.org


Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent c69e1396
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -639,7 +639,7 @@ static irqreturn_t as73211_trigger_handler(int irq __always_unused, void *p)
	struct {
		__le16 chan[4];
		aligned_s64 ts;
	} scan;
	} scan = { };
	int data_result, ret;

	mutex_lock(&data->mutex);