From: Krishna Kumar Date: Thu, 9 Nov 2006 04:00:41 +0000 (+0530) Subject: RDMA/iwcm: Fix memory leak X-Git-Tag: v2.6.20-rc2~6^2~13^2~476^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83b96586239bf6c719ff640341e1cf83e4a7c046;p=pandora-kernel.git RDMA/iwcm: Fix memory leak If we get IW_CM_EVENT_CONNECT_REQUEST message and encounter an error (not in the LISTEN state, cannot create an id, cannot alloc work_entry, etc), then the memory allocated by cm_event_handler() in the event->private_data gets leaked. Since cm_work_handler has already put the event on the work_free_list, this allocated memory is leaked. High backlog value can allow DoS attacks. Signed-off-by: Krishna Kumar Acked-by: Steve Wise Signed-off-by: Roland Dreier --- Reading git-diff-tree failed