Files
linux/drivers/gpio
Ioana Ciornei 3bd44edd6c gpio: regmap: fix memory leak of gpio_regmap structure
The gpio_regmap structure is leaked on the error path. Fix this by
jumping to the appropriate kfree instead of returning directly.

Fixes: db30516188 ("gpio: regmap: Allow ngpio to be read from the property")
Signed-off-by: Ioana Ciornei <[email protected]>
Suggested-by: Michael Walle <[email protected]>
Reviewed-by: Michael Walle <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bartosz Golaszewski <[email protected]>
2025-09-22 16:35:21 +02:00
..
2024-10-17 08:53:34 +02:00
2024-10-21 09:23:34 +02:00
…
2025-09-02 11:29:43 +02:00