[PATCH 6.1 189/208] nvmem: core: fix cell removal on error