Files
linux/fs/nfsd
Al Viro 5479e78788 nfsd: fix compose_entry_fh() failure exits
commit efe39651f0 upstream.

Restore the original logics ("fail on mountpoints, negatives and in
case of fh_compose() failures").  Since commit 8177e (nfsd: clean up
readdirplus encoding) that got broken -
	rv = fh_compose(fhp, exp, dchild, &cd->fh);
	if (rv)
	       goto out;
	if (!dchild->d_inode)
		goto out;
	rv = 0;
out:
is equivalent to
	rv = fh_compose(fhp, exp, dchild, &cd->fh);
out:
and the second check has no effect whatsoever...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-04-27 09:51:17 -07:00
..
2011-01-04 18:22:10 -05:00
2008-02-01 16:42:05 -05:00
2011-06-06 18:37:35 -04:00
2007-05-09 12:30:54 -07:00
2011-03-07 12:05:09 -05:00
2011-11-11 09:35:57 -08:00
2011-01-04 16:49:22 -05:00
2011-03-31 11:26:23 -03:00
2011-11-11 09:35:57 -08:00
2011-05-10 10:16:21 +02:00