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
MFC after:	1 week
This commit is contained in:
hselasky 2016-03-16 08:49:38 +00:00
parent f1fdbd94a3
commit 5b52683cd8

View File

@ -261,6 +261,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;