]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IB/iser: Return error to upper layers on EAGAIN registration failures
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 1 May 2013 13:25:26 +0000 (13:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Jun 2013 19:53:35 +0000 (12:53 -0700)
commitd38b707924f9bbdd5098ea8022d35acd8c0899ac
treea8e291f94e084ba33fd628e6561aee291d54a109
parent4e7955a0b12b1e47c87acb11a156b2576406a8eb
IB/iser: Return error to upper layers on EAGAIN registration failures

commit 450d1e40d597dd71843457c73d372c4b4f2a83eb upstream.

Commit 819a087316a6 ("IB/iser: Avoid error prints on EAGAIN
registration failures") not only eliminated the error print on that
case, but rather also modified the code such that it doesn't return
any error to upper layers.  As a result a wrong mapping was used.  Fix
this to correctly return the error in that case.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/iser/iser_memory.c