Skip to content

Commit

Permalink
power: supply: ab8500: add missing destroy_workqueue in ab8500_charge…
Browse files Browse the repository at this point in the history
…r_bind

ab8500_charger_bind misses destroy_workqueue in error path,
this patch fixes that.

Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
  • Loading branch information
Zheng Bin authored and Sebastian Reichel committed Jul 16, 2022
1 parent a1124c8 commit 38d4544
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/power/supply/ab8500_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 38d4544

Please sign in to comment.