803449ca7b
If during mem_map creation we managed to register only a part of the total registered memory and then failed in the middle, we will now undo our registrations and gracefully return an error code leading to a spdk_mem_map_alloc() failure(). Change-Id: Id549f35109bd381318adc676392d9ee26d035359 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/423538 Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>