> The gpio_regmap structure is leaked on the error path. Fix this by > jumping to the appropriate kfree instead of returning directly. > > Fixes: db305161880a ("gpio: regmap: Allow ngpio to be read from the property") > Signed-off-by: Ioana Ciornei > Suggested-by: Michael Walle Reviewed-by: Michael Walle