Loading net/rds/iw.c +2 −1 Original line number Diff line number Diff line Loading @@ -239,7 +239,8 @@ static int rds_iw_laddr_check(__be32 addr) ret = rdma_bind_addr(cm_id, (struct sockaddr *)&sin); /* due to this, we will claim to support IB devices unless we check node_type. */ if (ret || cm_id->device->node_type != RDMA_NODE_RNIC) if (ret || !cm_id->device || cm_id->device->node_type != RDMA_NODE_RNIC) ret = -EADDRNOTAVAIL; rdsdebug("addr %pI4 ret %d node type %d\n", Loading Loading
net/rds/iw.c +2 −1 Original line number Diff line number Diff line Loading @@ -239,7 +239,8 @@ static int rds_iw_laddr_check(__be32 addr) ret = rdma_bind_addr(cm_id, (struct sockaddr *)&sin); /* due to this, we will claim to support IB devices unless we check node_type. */ if (ret || cm_id->device->node_type != RDMA_NODE_RNIC) if (ret || !cm_id->device || cm_id->device->node_type != RDMA_NODE_RNIC) ret = -EADDRNOTAVAIL; rdsdebug("addr %pI4 ret %d node type %d\n", Loading