ARM: ep93xx: Add terminator to gpiod_lookup_table
Subsystems (4)
Alexander Sverdlin
maintainerPATCH 1/1 ARM: ep93xx: Add terminator to gpiod_lookup_table
From: Nikita Shubin <[email protected]>
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.
Fixes b2e63555592f ("i2c: gpio: Convert to use descriptors")
Reported-by Andy Shevchenko <[email protected]>
Signed-off-by Nikita Shubin <[email protected]>
Reviewed-by Linus Walleij <[email protected]>
Signed-off-by Alexander Sverdlin <[email protected]>
--- arch/arm/mach-ep93xx/core.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-ep93xx/core.c +1 -0
@@ -339,6 +339,7 @@ static struct gpiod_lookup_table ep93xx_i2c_gpiod_table = { GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN), GPIO_LOOKUP_IDX("G", 0, NULL, 1, GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN), + { } }, };
Signature · 1 line
2.42.0
This patch was applied to soc/soc.git (arm/fixes) by Arnd Bergmann <[email protected]>:
Hello:
This patch was applied to soc/soc.git (arm/fixes)
by Arnd Bergmann <[email protected]>:
Quoted 14 lines · On Mon, 5 Feb 2024 11:23:34 +0100 you wrote:
From: Nikita Shubin <[email protected]>
Without the terminator, if a
con_idis passed togpio_find()that does not exist in the lookup table the function will not stop looping correctly, and eventually cause an oops.Fixes b2e63555592f ("i2c: gpio: Convert to use descriptors")Reported-by Andy Shevchenko <[email protected]>Signed-off-by Nikita Shubin <[email protected]>Reviewed-by Linus Walleij <[email protected]>Signed-off-by Alexander Sverdlin <[email protected]>
Quoted 1 line
[...]
Here is the summary with links:
- ARM: ep93xx: Add terminator to gpiod_lookup_table
https://git.kernel.org/soc/soc/c/fdf87a0dc26d
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html