]> 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:02:38 +0000 (09:02 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:47 +0000 (16:28 +0200)
commit99b508340d0d1b9de0856c48c77898b14c0df7cf
tree1f84263d1c9c4212d2159095a7b2991ae53710a3
parent58ff8064cb4c7eddac4da1a59da039ead586950a
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