RDMA/ocrdma: Fix QP state transition in destroy_qp
authorDevesh Sharma <devesh.sharma@avagotech.com>
Tue, 19 May 2015 06:02:34 +0000 (11:32 +0530)
committerDoug Ledford <dledford@redhat.com>
Mon, 18 May 2015 14:25:24 +0000 (10:25 -0400)
commitfe48822bc6d5b455aab963038a9c776d641645cc
treeccdf87d9ef66da6e3b91f3cfcc832be28cfe765d
parent5e6f9237f8e676e8a9110b4dafed36b1dd0b5d84
RDMA/ocrdma: Fix QP state transition in destroy_qp

Don't move QP to error state, if QP is in reset state during QP
destroy operation.

Signed-off-by: Devesh Sharma <devesh.sharma@avagotech.com>
Signed-off-by: Selvin Xavier <selvin.xavier@avagotech.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c