]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: light: as73211: Ensure buffer holes are zeroed
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 2 Aug 2025 16:44:21 +0000 (17:44 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Aug 2025 13:58:35 +0000 (14:58 +0100)
commit433b99e922943efdfd62b9a8e3ad1604838181f2
tree6e033b395f17500129c10dfe67504f4a544d40cc
parentc69e13965f26b8058f538ea8bdbd2d7718cf1fbe
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: 403e5586b52e ("iio: light: as73211: New driver")
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://patch.msgid.link/20250802164436.515988-2-jic23@kernel.org
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/as73211.c