]> git.karo-electronics.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:08 +0000 (08:46 -0800)
commite3e36c5ac26542baa9fc4ceb8f323659f690c2a6
treefca4a87abc849a8f94b1333e831cc05fd3cd6f7f
parent4be6f33ca418c24a214f19a7e2316bba1d1fe921
SUNRPC: Fix validity issues with rpc_pipefs sb->s_fs_info

commit 642fe4d00db56d65060ce2fd4c105884414acb16 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/rpc_pipe.c