mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
765bd83cca
commit
083cdbac35
1 changed files with 3 additions and 0 deletions
|
|
@ -1943,6 +1943,9 @@ static int create_qp(struct ib_uverbs_file *file,
|
|||
atomic_inc(&attr.srq->usecnt);
|
||||
if (ind_tbl)
|
||||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue