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

Commit 96166056 authored by Axel Lin's avatar Axel Lin Committed by Artem Bityutskiy
Browse files

mtd: ndfc: fix a memory leak in ndfc_remove

parent ad274cec
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -283,6 +283,7 @@ static int __devexit ndfc_remove(struct platform_device *ofdev)
	struct ndfc_controller *ndfc = dev_get_drvdata(&ofdev->dev);

	nand_release(&ndfc->mtd);
	kfree(ndfc->mtd.name);

	return 0;
}