IB/ehca: Remove reference to special QP in case of port activation failure
If the initialization of a special QP (e.g. AQP1) fails due to a software timeout, we have to remove the reference to that special QP struct from the port struct to stop the driver from accessing the QP, since it will be/has been destroyed by the caller, eg in this case ib_mad. Signed-off-by: Stefan Roscher <stefan.roscher@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
committed by
Roland Dreier
parent
332edc2f7f
commit
fad96ab62d
@@ -860,6 +860,11 @@ static struct ehca_qp *internal_create_qp(
|
||||
if (qp_type == IB_QPT_GSI) {
|
||||
h_ret = ehca_define_sqp(shca, my_qp, init_attr);
|
||||
if (h_ret != H_SUCCESS) {
|
||||
kfree(my_qp->mod_qp_parm);
|
||||
my_qp->mod_qp_parm = NULL;
|
||||
/* the QP pointer is no longer valid */
|
||||
shca->sport[init_attr->port_num - 1].ibqp_sqp[qp_type] =
|
||||
NULL;
|
||||
ret = ehca2ib_return_code(h_ret);
|
||||
goto create_qp_exit6;
|
||||
}
|
||||
|
Reference in New Issue
Block a user