Skip to contentSkip to conversation

ARM: ep93xx: Add terminator to gpiod_lookup_table

PATCH Applied Alexander Sverdlin 2 participants 2 messages Feb 5, 2024 – Feb 20, 2024

Subsystems (4)
lore
Share & tools
lore

Alexander Sverdlin

author maintainer
#0 lore raw

PATCH 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.

---
 arch/arm/mach-ep93xx/core.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-ep93xx/core.c +1 -0
index 71b113976420..8b1ec60a9a46 100644
@@ -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
#1 lore raw
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_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.

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