]> Git Repo - linux.git/commitdiff
power: supply: ab8500: add missing destroy_workqueue in ab8500_charger_bind
authorZheng Bin <[email protected]>
Thu, 12 May 2022 09:38:44 +0000 (17:38 +0800)
committerSebastian Reichel <[email protected]>
Sat, 16 Jul 2022 23:00:25 +0000 (01:00 +0200)
ab8500_charger_bind misses destroy_workqueue in error path,
this patch fixes that.

Signed-off-by: Zheng Bin <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
drivers/power/supply/ab8500_charger.c

index 62c958b9ec370f99548599ccd23ee1e3e427d071..c19c50442761dc92cc7ed145eea355df0690b9fa 100644 (file)
@@ -3351,6 +3351,7 @@ static int ab8500_charger_bind(struct device *dev)
        ret = component_bind_all(dev, di);
        if (ret) {
                dev_err(dev, "can't bind component devices\n");
+               destroy_workqueue(di->charger_wq);
                return ret;
        }
 
This page took 0.074113 seconds and 4 git commands to generate.