IB/ipath: Fix error path in QP creation
authorRalph Campbell <ralph.campbell@qlogic.com>
Wed, 14 Nov 2007 20:09:05 +0000 (12:09 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 20 Nov 2007 19:04:10 +0000 (11:04 -0800)
commit8a278e6d571ebe10b96f2b53c74f01fd0a3f005a
tree3d6ced2d41c7aa6d0db91e1141b943f202a93c64
parentfb74dacb0f00dff851c78411773a5bd5d7128b81
IB/ipath: Fix error path in QP creation

This patch fixes the code which frees the partially allocated QP
resources if there was an error while creating the QP. In particular,
the QPN wasn't deallocated and the QP wasn't removed from the hash
table.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_qp.c