]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: parsers: qcom: Fix missing free for pparts in cleanup
authorAnsuel Smith <ansuelsmth@gmail.com>
Sun, 16 Jan 2022 03:22:11 +0000 (04:22 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 25 Jan 2022 09:32:07 +0000 (10:32 +0100)
commit28dfc5025ced1b497c68edc00af7b2bdc93020f0
tree215b557750ef5f71964ceec58c6ec431c51f13d6
parente306dd1c8bfaafad456b7a051cfd499c56b272cd
mtd: parsers: qcom: Fix missing free for pparts in cleanup

Mtdpart doesn't free pparts when a cleanup function is declared.
Add missing free for pparts in cleanup function for smem to fix the
leak.

Fixes: 258b66c7c25c ("mtd: parsers: qcom: Fix leaking of partition name")
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220116032211.9728-2-ansuelsmth@gmail.com
drivers/mtd/parsers/qcomsmempart.c