david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[Infiniband] Add missing list_del()s in ib_create_qp() failure path.

This commit is contained in:
Michael Brown 2008-02-23 04:03:31 +00:00
parent 604c934981
commit 563955ce37
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}