From: Zheng Bin Date: Thu, 12 May 2022 09:38:44 +0000 (+0800) Subject: power: supply: ab8500: add missing destroy_workqueue in ab8500_charger_bind X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=38d45444e257f7e3f6fbd242ba42371563984093;p=linux.git power: supply: ab8500: add missing destroy_workqueue in ab8500_charger_bind ab8500_charger_bind misses destroy_workqueue in error path, this patch fixes that. Signed-off-by: Zheng Bin Acked-by: Linus Walleij Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/ab8500_charger.c b/drivers/power/supply/ab8500_charger.c index 62c958b9ec370..c19c50442761d 100644 --- a/drivers/power/supply/ab8500_charger.c +++ b/drivers/power/supply/ab8500_charger.c @@ -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; }