From 6d5aaa1af81ea3b2a412c83955d243f1ed01dc4b Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Wed, 16 Mar 2016 08:49:38 +0000 Subject: [PATCH] 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 --- sys/contrib/rdma/krping/krping.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/contrib/rdma/krping/krping.c b/sys/contrib/rdma/krping/krping.c index 667af401f36b..e99ff7f63773 100644 --- a/sys/contrib/rdma/krping/krping.c +++ b/sys/contrib/rdma/krping/krping.c @@ -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;