[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.00.1202042346510.30244@swampdragon.chaosbits.net>
Date: Sat, 4 Feb 2012 23:49:40 +0100 (CET)
From: Jesper Juhl <jj@...osbits.net>
To: linux-rdma@...r.kernel.org
cc: linux-kernel@...r.kernel.org,
"Nicholas A. Bellinger" <nab@...ingtidesystems.com>,
Hal Rosenstock <hal.rosenstock@...il.com>,
Sean Hefty <sean.hefty@...el.com>,
Roland Dreier <roland@...nel.org>
Subject: [PATCH] IB: Don't return freed pointer from
srpt_alloc_ioctx_ring()
Signed-off-by: Jesper Juhl <jj@...osbits.net>
---
drivers/infiniband/ulp/srpt/ib_srpt.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
compile tested only.
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c
index cd5d05e..a59c685 100644
--- a/drivers/infiniband/ulp/srpt/ib_srpt.c
+++ b/drivers/infiniband/ulp/srpt/ib_srpt.c
@@ -687,6 +687,7 @@ err:
while (--i >= 0)
srpt_free_ioctx(sdev, ring[i], dma_size, dir);
kfree(ring);
+ ring = NULL;
out:
return ring;
}
--
1.7.9
--
Jesper Juhl <jj@...osbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists