[PATCH 6.2 626/663] mtd: core: fix nvmem error reporting