diff options
author | Sean Hefty <sean.hefty@intel.com> | 2006-09-29 14:57:09 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-10-02 17:52:15 -0400 |
commit | 8f0472d331619d5d74927978d0dde5b4935e41a5 (patch) | |
tree | 03fb847db854a396e5126e36e579383d25814f98 /drivers | |
parent | 6e35aabee125999f4b3c01326f5339fa74a89259 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/core/cma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index f383a4f50ab0..d10fdf1419b1 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, | |||
1308 | work->old_state = CMA_ROUTE_QUERY; | 1308 | work->old_state = CMA_ROUTE_QUERY; |
1309 | work->new_state = CMA_ADDR_RESOLVED; | 1309 | work->new_state = CMA_ADDR_RESOLVED; |
1310 | work->event.event = RDMA_CM_EVENT_ROUTE_ERROR; | 1310 | work->event.event = RDMA_CM_EVENT_ROUTE_ERROR; |
1311 | work->event.status = status; | ||
1311 | } | 1312 | } |
1312 | 1313 | ||
1313 | queue_work(cma_wq, &work->work); | 1314 | queue_work(cma_wq, &work->work); |