[PATCH 5.13 046/380] nvmem: core: fix error handling while validating keepout regions