From: Jonathan Cameron Date: Sat, 2 Aug 2025 16:44:21 +0000 (+0100) Subject: iio: light: as73211: Ensure buffer holes are zeroed X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=433b99e922943efdfd62b9a8e3ad1604838181f2;p=users%2Fjedix%2Flinux-maple.git 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 Reviewed-by: Andy Shevchenko Link: https://patch.msgid.link/20250802164436.515988-2-jic23@kernel.org Cc: Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/light/as73211.c b/drivers/iio/light/as73211.c index 68f60dc3c79d5..32719f584c47a 100644 --- a/drivers/iio/light/as73211.c +++ b/drivers/iio/light/as73211.c @@ -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);