linux/drivers/infiniband
Michael J. Ruhl e87473bc1b IB/hfi1: Only set fd pointer when base context is completely initialized
The allocate_ctxt() function adds the context to the fd data structure.
Since the context is not completely initialized, this can cause confusion
as to whether the context is valid or not.

Move the fd reference from allocate_ctxt() to setup_base_ctxt().
Update the necessary functions to be aware of this move.

Reviewed-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-07-31 15:18:38 -04:00
..
core IB/cma: Fix default RoCE type setting 2017-07-28 13:47:24 -04:00
hw IB/hfi1: Only set fd pointer when base context is completely initialized 2017-07-31 15:18:38 -04:00
sw Merge branch 'misc' into k.o/for-next 2017-07-27 09:00:38 -04:00
ulp Merge branch 'misc' into k.o/for-next 2017-07-27 09:00:38 -04:00
Kconfig IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev 2017-04-20 12:01:38 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00