Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f852ec46 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Sebastian Reichel
Browse files

power_supply: ipaq_micro_battery: Fix leaking workqueue



Driver allocates singlethread workqueue in probe but it is not destroyed
during removal.

Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fixes: 00a588f9 ("power: add driver for battery reading on iPaq h3xxx")
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 68c3ed6f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -251,6 +251,7 @@ static int micro_batt_remove(struct platform_device *pdev)
	power_supply_unregister(&micro_ac_power);
	power_supply_unregister(&micro_batt_power);
	cancel_delayed_work_sync(&mb->update);
	destroy_workqueue(mb->wq);

	return 0;
}