MFC r296934:

Fix crash in krping when run as a client due to NULL pointer access.
Initialize pointer in question which is used only when fast registers
mode is selected.

Sponsored by:	Mellanox Technologies
This commit is contained in:
hselasky 2016-04-07 07:41:06 +00:00
parent 1c1fa6f80e
commit 9706ffd556

View File

@ -259,6 +259,7 @@ static int krping_cma_event_handler(struct rdma_cm_id *cma_id,
case RDMA_CM_EVENT_ROUTE_RESOLVED:
cb->state = ROUTE_RESOLVED;
cb->child_cm_id = cma_id;
wake_up_interruptible(&cb->sem);
break;