All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC, PATCH] svc: Don't call xpo_free until after releasing auth data
@ 2007-10-12 18:58 Tom Tucker
  2007-10-15  1:21 ` Greg Banks
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Tucker @ 2007-10-12 18:58 UTC (permalink / raw)
  To: nfs; +Cc: bfields, neilb, gnb


The svc_xprt_free function is calling xpo_free and then using the xprt
pointer while attempting to free the cached auth data. Reverse the order
of these operations.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
---

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

diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c
index cbf80b0..56fcc7c 100644
--- a/net/sunrpc/svc_xprt.c
+++ b/net/sunrpc/svc_xprt.c
@@ -127,10 +127,10 @@ static void svc_xprt_free(struct kref *k
 		container_of(kref, struct svc_xprt, xpt_ref);
 	struct module *owner = xprt->xpt_class->xcl_owner;
 	BUG_ON(atomic_read(&kref->refcount));
-	xprt->xpt_ops->xpo_free(xprt);
 	if (test_bit(XPT_CACHE_AUTH, &xprt->xpt_flags)
 	    && xprt->xpt_auth_cache != NULL)
 		svcauth_unix_info_release(xprt->xpt_auth_cache);
+	xprt->xpt_ops->xpo_free(xprt);
 	module_put(owner);
 }
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [RFC, PATCH] svc: Don't call xpo_free until after releasing auth data
  2007-10-12 18:58 [RFC, PATCH] svc: Don't call xpo_free until after releasing auth data Tom Tucker
@ 2007-10-15  1:21 ` Greg Banks
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Banks @ 2007-10-15  1:21 UTC (permalink / raw)
  To: Tom Tucker; +Cc: bfields, neilb, nfs

On Fri, Oct 12, 2007 at 01:58:32PM -0500, Tom Tucker wrote:
> 
> The svc_xprt_free function is calling xpo_free and then using the xprt
> pointer while attempting to free the cached auth data. Reverse the order
> of these operations.
> 

ok.

Greg.
-- 
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
Apparently, I'm Bedevere.  Which MPHG character are you?
I don't speak for SGI.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-15  1:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-12 18:58 [RFC, PATCH] svc: Don't call xpo_free until after releasing auth data Tom Tucker
2007-10-15  1:21 ` Greg Banks

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.