1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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:
Hans Petter Selasky 2016-03-16 08:49:38 +00:00
parent a435d46fdf
commit 6d5aaa1af8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=296934

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;