IB/ehca: Fix error paths in post_send and post_recv
authorFrank Zago <frank@zago.net>
Wed, 9 Dec 2009 23:07:25 +0000 (15:07 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 9 Dec 2009 23:07:25 +0000 (15:07 -0800)
commite147de03610fab7781c09aaed078a932e549ed4a
tree66674d008aa505e5e2dadc0a6260df30ef5ef768
parent9420269428b3dc80c98e52beac60a3976fbef7d2
IB/ehca: Fix error paths in post_send and post_recv

Always set bad_wr when an immediate error is detected.  Do not report
success if an error occurred.

Signed-off-by: Frank Zago <fzago@systemfabricworks.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_reqs.c