[PATCH 5.15 101/120] nvmem: core: fix cell removal on error