]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async: use device before checking 19738/head
authorlixiaoy1 <xiaoyan.li@intel.com>
Tue, 2 Jan 2018 14:24:02 +0000 (09:24 -0500)
committerlixiaoy1 <xiaoyan.li@intel.com>
Tue, 2 Jan 2018 14:28:28 +0000 (09:28 -0500)
Signed-off-by: Xiaoyan Li <xiaoyan.li@intel.com>
src/msg/async/rdma/Infiniband.cc

index 0c595dc62b15ac8992b1478de7331045cd5dac50..0f82554e96aff03667542e6c6ca97f44048b5c45 100644 (file)
@@ -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);