diff options
| author | 2024-12-03 22:14:51 +0800 | |
|---|---|---|
| committer | 2024-12-06 19:04:42 +0100 | |
| commit | 3396995f9fb6bcbe0004a68118a22f98bab6e2b9 (patch) | |
| tree | 3d69949b188e719be1404b886089e5b667d126c9 /scripts/basic/git:/ssh:/git@git.zx2c4.com | |
| parent | gpio: GPIO_MVEBU should not default to y when compile-testing (diff) | |
| download | wireguard-linux-3396995f9fb6bcbe0004a68118a22f98bab6e2b9.tar.xz wireguard-linux-3396995f9fb6bcbe0004a68118a22f98bab6e2b9.zip | |
gpio: ljca: Initialize num before accessing item in ljca_gpio_config
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: 1034cc423f1b ("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>
Diffstat (limited to 'scripts/basic/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
