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)
commit1644ccc8a99ae73859c39372f96afdbf03c9f80d
tree27b568d2fcc00738a505fd562d7fa4728aa43d7f
parente5d67f0715bc60f6c19abdd86d007d7bb29c9951
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