mirror of
https://github.com/ipxe/ipxe
synced 2025-12-11 22:11:08 +03:00
[Infiniband] Add missing list_del()s in ib_create_qp() failure path.
This commit is contained in:
@@ -132,6 +132,8 @@ struct ib_queue_pair * ib_create_qp ( struct ib_device *ibdev,
|
|||||||
if ( ( rc = ibdev->op->create_qp ( ibdev, qp ) ) != 0 ) {
|
if ( ( rc = ibdev->op->create_qp ( ibdev, qp ) ) != 0 ) {
|
||||||
DBGC ( ibdev, "IBDEV %p could not initialise queue pair: "
|
DBGC ( ibdev, "IBDEV %p could not initialise queue pair: "
|
||||||
"%s\n", ibdev, strerror ( rc ) );
|
"%s\n", ibdev, strerror ( rc ) );
|
||||||
|
list_del ( &qp->send.list );
|
||||||
|
list_del ( &qp->recv.list );
|
||||||
free ( qp );
|
free ( qp );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user