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

Commit 61bb5a78 authored by Axel Lin's avatar Axel Lin Committed by Anton Vorontsov
Browse files

da9052-battery: Fix a memory leak when unload the module

parent e1be8329
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -634,6 +634,7 @@ static int __devexit da9052_bat_remove(struct platform_device *pdev)
		free_irq(bat->da9052->irq_base + irq, bat);
	}
	power_supply_unregister(&bat->psy);
	kfree(bat);

	return 0;
}