Fix kernel panic while using XRC_TGT QP type in ibcore.
Attempt to modify XRC_TGT QP type from the user space (ibv_xsrq_pingpong invocation) will trigger the following kernel panic. It is caused by the fact that such QPs missed uobject initialization. Linux commit: f45765872e7aae7b81feb3044aaf9886b21885ef MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
b76d21e418
commit
fb932291cb
@ -1943,6 +1943,9 @@ static int create_qp(struct ib_uverbs_file *file,
|
|||||||
atomic_inc(&attr.srq->usecnt);
|
atomic_inc(&attr.srq->usecnt);
|
||||||
if (ind_tbl)
|
if (ind_tbl)
|
||||||
atomic_inc(&ind_tbl->usecnt);
|
atomic_inc(&ind_tbl->usecnt);
|
||||||
|
} else {
|
||||||
|
/* It is done in _ib_create_qp for other QP types */
|
||||||
|
qp->uobject = &obj->uevent.uobject;
|
||||||
}
|
}
|
||||||
qp->uobject = &obj->uevent.uobject;
|
qp->uobject = &obj->uevent.uobject;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user