]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
SUNRPC: Fix validity issues with rpc_pipefs sb->s_fs_info
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 8 Nov 2012 15:01:26 +0000 (10:01 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 8 Nov 2012 19:53:28 +0000 (14:53 -0500)
commit642fe4d00db56d65060ce2fd4c105884414acb16
tree49d4b27e67b129dec2b1c102af9e6365466880c3
parent0e4a43ed08e2f44aa7b96aa95d0a540d675483e1
SUNRPC: Fix validity issues with rpc_pipefs sb->s_fs_info

rpc_kill_sb() must defer calling put_net() until after the notifier
has been called, since most (all?) of the notifier callbacks assume
that sb->s_fs_info points to a valid net namespace. It also must not
call put_net() if the call to rpc_fill_super was unsuccessful.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=48421

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Stanislav Kinsbursky <skinsbursky@parallels.com>
Cc: stable@vger.kernel.org [>= v3.4]
net/sunrpc/rpc_pipe.c