mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
power_supply: ipaq_micro_battery: Fix leaking workqueue
commitf852ec461eupstream. Driver allocates singlethread workqueue in probe but it is not destroyed during removal. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Fixes:00a588f9d2("power: add driver for battery reading on iPaq h3xxx") Signed-off-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e7b8d14c9b
commit
a8cb866f51
@@ -251,6 +251,7 @@ static int micro_batt_remove(struct platform_device *pdev)
|
||||
power_supply_unregister(µ_ac_power);
|
||||
power_supply_unregister(µ_batt_power);
|
||||
cancel_delayed_work_sync(&mb->update);
|
||||
destroy_workqueue(mb->wq);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user