]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: pci: mg4b: fix uninitialized iio scan data
authorDavid Lechner <dlechner@baylibre.com>
Tue, 22 Jul 2025 22:05:46 +0000 (17:05 -0500)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Fri, 29 Aug 2025 09:04:02 +0000 (11:04 +0200)
commitc0d3f6969bb4d72476cfe7ea9263831f1c283704
tree000b34b3b0118ebc5d439281cfcbaf13bcf36ce9
parentfaee7aaf8760599a7a6bd2ae3547624edfd15e8b
media: pci: mg4b: fix uninitialized iio scan data

Fix potential leak of uninitialized stack data to userspace by ensuring
that the `scan` structure is zeroed before use.

Fixes: 0ab13674a9bd ("media: pci: mgb4: Added Digiteq Automotive MGB4 driver")
Cc: stable@vger.kernel.org
Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/pci/mgb4/mgb4_trigger.c