Skip to content

Commit 8acd9a0

Browse files
jic23gregkh
authored andcommitted
iio: light: as73211: Ensure buffer holes are zeroed
commit 433b99e upstream. Given that the buffer is copied to a kfifo that ultimately user space can read, ensure we zero it. Fixes: 403e558 ("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 23c0d44 commit 8acd9a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/light/as73211.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ static irqreturn_t as73211_trigger_handler(int irq __always_unused, void *p)
639639
struct {
640640
__le16 chan[4];
641641
aligned_s64 ts;
642-
} scan;
642+
} scan = { };
643643
int data_result, ret;
644644

645645
mutex_lock(&data->mutex);

0 commit comments

Comments
 (0)