SUNRPC: prevent task_cleanup running on freed xprt
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 3 Aug 2010 21:22:20 +0000 (17:22 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 4 Aug 2010 12:54:10 +0000 (08:54 -0400)
commitc3ae62ae08bb0db3639d8c579e4ff0967d908199
tree75228755a6cdd508a62597be61a04408f949975d
parentd6a1ed08c6acea647b3f2aaebe0261f079e1be49
SUNRPC: prevent task_cleanup running on freed xprt

We saw a report of a NULL dereference in xprt_autoclose:

https://bugzilla.redhat.com/show_bug.cgi?id=611938

This appears to be the result of an xprt's task_cleanup running after
the xprt is destroyed.  Nothing in the current code appears to prevent
that.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xprt.c