]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ehca: Return proper error code if register_mr fails
authorHoang-Nam Nguyen <hnguyen@linux.vnet.ibm.com>
Wed, 16 May 2007 12:50:55 +0000 (14:50 +0200)
committerRoland Dreier <rolandd@cisco.com>
Sat, 19 May 2007 15:51:54 +0000 (08:51 -0700)
commit02c13889845d6d5242d075322d82dbc2ba517989
treede6f1244a49a5facba605812d8c0f03167374ff2
parentec94701c8efa81a31639108b74f783417bdb1e1a
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 <hnguyen@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_mrmw.c