[openib-general] RNFS double page free fix

Vu Pham vu at mellanox.com
Tue Dec 12 14:46:03 PST 2006


Tom,
  Thanks a lot. This patch seem to fix the double page free problem

-vu

> 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