Files
linux-stable-mirror/drivers
Haoyu Li 2ae71c3770 gpio: ljca: Initialize num before accessing item in ljca_gpio_config
commit 3396995f9f upstream.

With the new __counted_by annocation in ljca_gpio_packet, the "num"
struct member must be set before accessing the "item" array. Failing to
do so will trigger a runtime warning when enabling CONFIG_UBSAN_BOUNDS
and CONFIG_FORTIFY_SOURCE.

Fixes: 1034cc423f ("gpio: update Intel LJCA USB GPIO driver")
Cc: stable@vger.kernel.org
Signed-off-by: Haoyu Li <lihaoyu499@gmail.com>
Link: https://lore.kernel.org/stable/20241203141451.342316-1-lihaoyu499%40gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-10-29 14:07:06 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
…
2025-10-29 14:07:04 +01:00
…
2025-10-19 16:30:53 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-08-28 16:28:15 +02:00
…
…
…