summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-max7300.c
diff options
context:
space:
mode:
authorHaoyu Li <lihaoyu499@gmail.com>2024-12-03 22:14:51 +0800
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-12-06 19:04:42 +0100
commit3396995f9fb6bcbe0004a68118a22f98bab6e2b9 (patch)
tree3d69949b188e719be1404b886089e5b667d126c9 /drivers/gpio/gpio-max7300.c
parent70327137eb3eb64f346191dcd0ee5140d5ab34d8 (diff)
downloadlwn-3396995f9fb6bcbe0004a68118a22f98bab6e2b9.tar.gz
lwn-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 'drivers/gpio/gpio-max7300.c')
0 files changed, 0 insertions, 0 deletions