From: Hoang-Nam Nguyen Date: Wed, 16 May 2007 12:50:55 +0000 (+0200) Subject: IB/ehca: Return proper error code if register_mr fails X-Git-Tag: v2.6.22-rc3~108^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd5a6ccc0e6d8eed3047b4af0e5c1e7168869cd8;p=pandora-kernel.git IB/ehca: Return proper error code if register_mr fails Set the return code of ehca_register_mr() to ENOMEM if the corresponding firmware call fails due to out of resources. Some other error codes were explicitly mapped to EINVAL -- just remove those cases so they get mapped to the default case, which already returns EINVAL anyway. Signed-off-by: Hoang-Nam Nguyen Signed-off-by: Roland Dreier --- Reading git-diff-tree failed