mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-29 04:39:42 +00:00
[Infiniband] Add missing list_del()s in ib_create_qp() failure path.
This commit is contained in:
parent
604c934981
commit
563955ce37
@ -132,6 +132,8 @@ struct ib_queue_pair * ib_create_qp ( struct ib_device *ibdev,
|
||||
if ( ( rc = ibdev->op->create_qp ( ibdev, qp ) ) != 0 ) {
|
||||
DBGC ( ibdev, "IBDEV %p could not initialise queue pair: "
|
||||
"%s\n", ibdev, strerror ( rc ) );
|
||||
list_del ( &qp->send.list );
|
||||
list_del ( &qp->recv.list );
|
||||
free ( qp );
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user