ARM: ep93xx: Add terminator to gpiod_lookup_table
authorNikita Shubin <nikita.shubin@maquefel.me>
Mon, 5 Feb 2024 10:23:34 +0000 (11:23 +0100)
committerArnd Bergmann <arnd@arndb.de>
Tue, 20 Feb 2024 16:19:49 +0000 (17:19 +0100)
commitfdf87a0dc26d0550c60edc911cda42f9afec3557
treebfed6aff4bd97d617e3846c0ad2c2fc7499ba8cf
parent841c35169323cd833294798e58b9bf63fa4fa1de
ARM: ep93xx: Add terminator to gpiod_lookup_table

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: b2e63555592f ("i2c: gpio: Convert to use descriptors")
Reported-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Link: https://lore.kernel.org/r/20240205102337.439002-1-alexander.sverdlin@gmail.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-ep93xx/core.c