>> -    list_for_each_entry(cma_dev, &dev_list, list)
>> +    list_for_each_entry(cma_dev, &dev_list, list) {
>> +            if (rdma_node_get_transport(cma_dev->device->node_type) !=
>> +                RDMA_TRANSPORT_IB)
>> +                    continue;
>> +
>>              for (p = 1; p <= cma_dev->device->phys_port_cnt; ++p)
>>                      if (!ib_query_port(cma_dev->device, p, &port_attr) &&
>>                          port_attr.state == IB_PORT_ACTIVE)
>>                              goto port_found;
>> +    }
>>
>
>Here you need to:
>                    ret = -ENODEV;
>                    goto out;

Good catch, I'll update the patch and submit for 2.6.33 on Monday.


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to