mtd: physmap_of: Fix resources leak in 'of_flash_probe()'
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sun, 6 Aug 2017 12:55:01 +0000 (14:55 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 15 Aug 2017 12:00:47 +0000 (14:00 +0200)
commit871e7c01ca55fdc714691206f041e48f695f444c
tree4c432aa6a036d3f2b3c196b358e3a6d303eba309
parentd64dc9c8470da1582bf0d853c8a4ae05ad31815b
mtd: physmap_of: Fix resources leak in 'of_flash_probe()'

If 'of_flash_probe_gemini()' or 'of_flash_probe_versatile()' fail, we must
reslease some resources, as already done in all error handling paths in
this function.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/maps/physmap_of_core.c