IB/mthca: don't change driver's copy of attributes if modify QP fails
authorJack Morgenstein <jackm@mellanox.co.il>
Sat, 10 Dec 2005 00:40:14 +0000 (16:40 -0800)
committerRoland Dreier <rolandd@cisco.com>
Sat, 10 Dec 2005 00:40:14 +0000 (16:40 -0800)
commit44b5b0303327cfb23f135b95b2fe5436c81ed27c
tree7f1dcdaf798dbd99cd2b43709e992e3a12c015a6
parent6aa2e4e8063114bd7cea8616dd5848d3c64b4c36
IB/mthca: don't change driver's copy of attributes if modify QP fails

Only change the driver's copy of the QP attributes in modify QP after
checking the modify QP command completed successfully.

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_qp.c