Commit 89d40ee5 authored by Nikita Shubin's avatar Nikita Shubin Committed by Yuntao Liu
Browse files

ARM: ep93xx: Add terminator to gpiod_lookup_table

stable inclusion
from stable-v5.10.211
commit 70d92abbe29692a3de8697ae082c60f2d21ab482
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9E2O0
CVE: CVE-2024-26751

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=70d92abbe29692a3de8697ae082c60f2d21ab482



--------------------------------

Without the terminator, if a con_id is passed to gpio_find() that
does not exist in the lookup table the function will not stop looping
correctly, and eventually cause an oops.

Cc: stable@vger.kernel.org
Fixes: b2e63555 ("i2c: gpio: Convert to use descriptors")
Reported-by: default avatarAndy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: default avatarNikita Shubin <nikita.shubin@maquefel.me>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Acked-by: default avatarAlexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: default avatarAlexander Sverdlin <alexander.sverdlin@gmail.com>
Link: https://lore.kernel.org/r/20240205102337.439002-1-alexander.sverdlin@gmail.com


Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarYuntao Liu <liuyuntao12@huawei.com>
parent 1ed85cbd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment