[PATCH 6.0 0291/1073] mtd: core: fix possible resource leak in init_mtd()