[PATCH 4/4] nvmem: core: fix error handling while validating keepout regions