]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: light: as73211: Ensure buffer holes are zeroed
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 24 Aug 2025 13:14:55 +0000 (09:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:26:16 +0000 (16:26 +0200)
commit83f14c4ca1ad78fcfb3e0de07d6d8a0c59550fc2
treeddf8140a9474e803f08c59d95141c5991afd72f3
parent418b448e1d7470da9d4d4797f71782595ee69c49
iio: light: as73211: Ensure buffer holes are zeroed

[ Upstream commit 433b99e922943efdfd62b9a8e3ad1604838181f2 ]

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>
[ Adjust context ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/light/as73211.c