]> git.baikalelectronics.ru Git - kernel.git/commit
Safer nfsd_cross_mnt()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 18 Apr 2009 06:32:31 +0000 (02:32 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 21 Apr 2009 03:01:15 +0000 (23:01 -0400)
commit1fbe9effcc26a23cc4eaa170f2d113655b08e5c8
tree27b568d2fcc00738a505fd562d7fa4728aa43d7f
parentf1fb311c06325855dea6af473c67c77937e222eb
Safer nfsd_cross_mnt()

AFAICS, we have a subtle bug there: if we have crossed mountpoint
*and* it got mount --move'd away, we'll be holding only one
reference to fs containing dentry - exp->ex_path.mnt.  IOW, we
ought to dput() before exp_put().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/nfsd/vfs.c