http://git.etherboot.org
/
people
/
mcb30
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
604c934
)
[Infiniband] Add missing list_del()s in ib_create_qp() failure path.
author
Michael Brown
<mcb30@etherboot.org>
Sat, 23 Feb 2008 04:03:31 +0000
(
04:03
+0000)
committer
Michael Brown
<mcb30@etherboot.org>
Sat, 23 Feb 2008 10:48:10 +0000
(10:48 +0000)
src/net/infiniband.c
patch
|
blob
|
history
diff --git
a/src/net/infiniband.c
b/src/net/infiniband.c
index
ed186d1
..
89f7d51
100644
(file)
--- a/
src/net/infiniband.c
+++ b/
src/net/infiniband.c
@@
-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 ) );
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;
}
free ( qp );
return NULL;
}