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

Commit 5f29895f authored by Axel Lin's avatar Axel Lin Committed by Anton Vorontsov
Browse files

jz4740-battery: Add missing kfree(jz_battery) in jz_battery_remove()

parent a01bce6a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -383,6 +383,7 @@ static int __devexit jz_battery_remove(struct platform_device *pdev)

	iounmap(jz_battery->base);
	release_mem_region(jz_battery->mem->start, resource_size(jz_battery->mem));
	kfree(jz_battery);

	return 0;
}