mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
Merge pull request #19738 from lixiaoy1/minor_fix
msg/async: use device before checking Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
34596a821d
@ -884,8 +884,8 @@ void Infiniband::init()
|
||||
initialized = true;
|
||||
|
||||
device = device_list->get_device(device_name.c_str());
|
||||
device->binding_port(cct, port_num);
|
||||
assert(device);
|
||||
device->binding_port(cct, port_num);
|
||||
ib_physical_port = device->active_port->get_port_num();
|
||||
pd = new ProtectionDomain(cct, device);
|
||||
assert(NetHandler(cct).set_nonblock(device->ctxt->async_fd) == 0);
|
||||
|
Loading…
Reference in New Issue
Block a user