IB/srp: Report receive errors correctly
authorBart Van Assche <bvanassche@acm.org>
Thu, 10 Oct 2013 11:53:25 +0000 (13:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 18:56:17 +0000 (10:56 -0800)
commitc0be79254f31d3e19fa584bb2e7ca8d152074bbc
tree1c9dad9b9fd1ac5ac3e1806c3ef2c0b6b1fa86f6
parent71d7bd9b865fb91fb39501260fafd88c791d9dc5
IB/srp: Report receive errors correctly

commit cd4e38542a5c2cab94e5410fb17c1cc004a60792 upstream.

The IB spec does not guarantee that the opcode is available in error
completions.  Hence do not rely on it.  See also commit 948d1e889e5b
("IB/srp: Introduce srp_handle_qp_err()").

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/srp/ib_srp.c