staging/rdma/hfi1: Select only devices with active links
authorDean Luick <dean.luick@intel.com>
Sat, 7 Nov 2015 01:07:01 +0000 (20:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
commit702249732580f8f9b392552806b55206642ff401
tree4dbce7d9697907adc957e76022ddeb750e3a6768
parent4ef98989cb08af8c7c9c955cd69327bb67dcd027
staging/rdma/hfi1: Select only devices with active links

When looking for or validating a user device, only use devices
that are currently active.

Reviewed-by: Mitko Haralanov <mitko.haralanov@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/file_ops.c