[openib-general] RNFS double page free fix

Tom Tucker tom at opengridcomputing.com
Tue Dec 12 12:36:05 PST 2006


Vu:

Thanks for finding this bug. I think I have a fix. 
Can you please apply it to your server and see if it 
fixes the problem for you too?

Thanks,
Tom

Double page free on session shutdown

From: Tom Tucker <tom at opengridcomputing.com>

---

 net/sunrpc/svc_rdma_recvfrom.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/sunrpc/svc_rdma_recvfrom.c b/net/sunrpc/svc_rdma_recvfrom.c
index ec62000..059f5ff 100644
--- a/net/sunrpc/svc_rdma_recvfrom.c
+++ b/net/sunrpc/svc_rdma_recvfrom.c
@@ -527,6 +527,7 @@ int svc_rdma_recvfrom(struct svc_rqst *r
 		/* Close the transport */
 		set_bit(SK_CLOSE, &xprt->sk_flags);
 		svc_rdma_put_context(ctxt, 1);
+		ctxt = NULL;
 		goto poll_dto_q;
 	}
 





More information about the general mailing list