summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2006-09-29 11:57:09 -0700
committerRoland Dreier <rolandd@cisco.com>2006-10-02 14:52:15 -0700
commit8f0472d331619d5d74927978d0dde5b4935e41a5 (patch)
tree03fb847db854a396e5126e36e579383d25814f98
parent6e35aabee125999f4b3c01326f5339fa74a89259 (diff)
downloadop-kernel-dev-8f0472d331619d5d74927978d0dde5b4935e41a5.zip
op-kernel-dev-8f0472d331619d5d74927978d0dde5b4935e41a5.tar.gz
RDMA/cma: Set status correctly on route resolution error
On reporting a route error, also include the status for the error, rather than indicating a status of 0 when an error has occurred. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--drivers/infiniband/core/cma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index f383a4f..d10fdf1 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -1308,6 +1308,7 @@ static void cma_query_handler(int status, struct ib_sa_path_rec *path_rec,
work->old_state = CMA_ROUTE_QUERY;
work->new_state = CMA_ADDR_RESOLVED;
work->event.event = RDMA_CM_EVENT_ROUTE_ERROR;
+ work->event.status = status;
}
queue_work(cma_wq, &work->work);
OpenPOWER on IntegriCloud