[PATCH 6.3 117/694] mtd: core: fix error path for nvmem provider