mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
parent
6e35aabee1
commit
8f0472d331
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue