summaryrefslogtreecommitdiffstats
path: root/fs/hfs
diff options
context:
space:
mode:
authorJann Horn <jannh@google.com>2018-10-30 15:06:38 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-27 16:12:59 +0100
commitee38053fcf5d401e8b5c05bd6a40b687a875f02a (patch)
treefa59cbb3ebc9606849338eb6ad4d1bf599e237d0 /fs/hfs
parent23ce028f4564d1ce2df1fc6f99d9fcad5beaa51b (diff)
downloadlinux-stable-ee38053fcf5d401e8b5c05bd6a40b687a875f02a.tar.gz
linux-stable-ee38053fcf5d401e8b5c05bd6a40b687a875f02a.tar.bz2
linux-stable-ee38053fcf5d401e8b5c05bd6a40b687a875f02a.zip
reiserfs: propagate errors from fill_with_dentries() properly
[ Upstream commit b10298d56c9623f9b173f19959732d3184b35f4f ] fill_with_dentries() failed to propagate errors up to reiserfs_for_each_xattr() properly. Plumb them through. Note that reiserfs_for_each_xattr() is only used by reiserfs_delete_xattrs() and reiserfs_chown_xattrs(). The result of reiserfs_delete_xattrs() is discarded anyway, the only difference there is whether a warning is printed to dmesg. The result of reiserfs_chown_xattrs() does matter because it can block chowning of the file to which the xattrs belong; but either way, the resulting state can have misaligned ownership, so my patch doesn't improve things greatly. Credit for making me look at this code goes to Al Viro, who pointed out that the ->actor calling convention is suboptimal and should be changed. Link: http://lkml.kernel.org/r/20180802163335.83312-1-jannh@google.com Signed-off-by: Jann Horn <jannh@google.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Jeff Mahoney <jeffm@suse.com> Cc: Eric Biggers <ebiggers@google.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/hfs')
0 files changed, 0 insertions, 0 deletions