summaryrefslogtreecommitdiffstats
path: root/src/net/infiniband/ib_pathrec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/infiniband/ib_pathrec.c')
-rw-r--r--src/net/infiniband/ib_pathrec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/infiniband/ib_pathrec.c b/src/net/infiniband/ib_pathrec.c
index 983623c7..136e628d 100644
--- a/src/net/infiniband/ib_pathrec.c
+++ b/src/net/infiniband/ib_pathrec.c
@@ -53,6 +53,8 @@ static void ib_path_complete ( struct ib_device *ibdev,
struct ib_path_record *pathrec = &mad->sa.sa_data.path_record;
/* Report failures */
+ if ( ( rc == 0 ) && ( mad->hdr.status != htons ( IB_MGMT_STATUS_OK ) ))
+ rc = -ENETUNREACH;
if ( rc != 0 ) {
DBGC ( ibdev, "IBDEV %p path lookup for %08x:%08x:%08x:%08x "
"failed: %s\n", ibdev, htonl ( dgid->u.dwords[0] ),