Skip to content

Commit 809bd27

Browse files
committed
Merge tag 'regulator-fix-v6.18-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fix from Mark Brown: "One simple fix for a GPIO descriptor leak in the probe error handling for the fixed regulator" * tag 'regulator-fix-v6.18-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: fixed: fix GPIO descriptor leak on register failure
2 parents 27f5186 + 636f461 commit 809bd27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/regulator/fixed.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
334334
ret = dev_err_probe(&pdev->dev, PTR_ERR(drvdata->dev),
335335
"Failed to register regulator: %ld\n",
336336
PTR_ERR(drvdata->dev));
337+
gpiod_put(cfg.ena_gpiod);
337338
return ret;
338339
}
339340

0 commit comments

Comments
 (0)