RDMA/ucma: Fix struct ucma_event leak when backlog is full
authorSean Hefty <sean.hefty@intel.com>
Thu, 14 Dec 2006 19:22:19 +0000 (11:22 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 8 Jan 2007 04:17:34 +0000 (20:17 -0800)
commit30a5ec982e4cfa955f93c454debaefc4d61d2da6
tree693056e3dbf07c0c2574f638021481a23ff8fb48
parent881a045fc5b454b57c69e010acecd5830d87e242
RDMA/ucma: Fix struct ucma_event leak when backlog is full

We discard new connection requests while the listen backlog is full,
but leak a struct ucma_event in the process.  Free the structure in
this case.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/ucma.c