Fix double ibv_close_device on RDMA init failure
This commit is contained in:
@@ -388,8 +388,6 @@ msgr_rdma_context_t *msgr_rdma_context_t::create(ibv_device *dev, ibv_port_attr
|
|||||||
return ctx;
|
return ctx;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
if (context)
|
|
||||||
ibv_close_device(context);
|
|
||||||
delete ctx;
|
delete ctx;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user