IB/qib: Prevent context loss
authorIra Weiny <ira.weiny@intel.com>
Thu, 9 Jun 2016 14:51:39 +0000 (07:51 -0700)
committerDoug Ledford <dledford@redhat.com>
Sat, 18 Jun 2016 00:11:26 +0000 (20:11 -0400)
commit5e9ef24619486213223053678eb9175630ef6bf9
tree1a2b29c2d88c114c46437568bd3aea9763e35202
parentca2f30a0a6786e6b08eeb8abb2bbb8df58709d6e
IB/qib: Prevent context loss

If a context has already been assigned to an FD, prevent
another assignment.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qib/qib_file_ops.c