Commit:     30a5ec982e4cfa955f93c454debaefc4d61d2da6
Parent:     881a045fc5b454b57c69e010acecd5830d87e242
Author:     Sean Hefty <[EMAIL PROTECTED]>
AuthorDate: Thu Dec 14 11:22:19 2006 -0800
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Sun Jan 7 20:17:34 2007 -0800

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
 drivers/infiniband/core/ucma.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c
index 81a5cdc..9f30f9b 100644
--- a/drivers/infiniband/core/ucma.c
+++ b/drivers/infiniband/core/ucma.c
@@ -209,6 +209,7 @@ static int ucma_event_handler(struct rdma_cm_id *cm_id,
        if (event->event == RDMA_CM_EVENT_CONNECT_REQUEST) {
                if (!ctx->backlog) {
                        ret = -EDQUOT;
+                       kfree(uevent);
                        goto out;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to