[PATCH v2 2/4] mtd: core: fix nvmem error reporting