diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-12-11 21:25:32 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-12-11 21:25:32 +0100 |
commit | 687dec9b94599b19e218f89fd034d6449c3ff57c (patch) | |
tree | 4e7a937b744f8d01381b52389e76201092fabf43 /fs | |
parent | Merge tag 'trace-v5.5-3' of git://git.kernel.org/pub/scm/linux/kernel/git/ros... (diff) | |
parent | erofs: update documentation (diff) | |
download | linux-687dec9b94599b19e218f89fd034d6449c3ff57c.tar.xz linux-687dec9b94599b19e218f89fd034d6449c3ff57c.zip |
Merge tag 'erofs-for-5.5-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs
Pull erofs fixes from Gao Xiang:
"Mainly address a regression reported by David recently observed
together with overlayfs due to the improper return value of
listxattr() without xattr. Update outdated expressions in document as
well.
Summary:
- Fix improper return value of listxattr() with no xattr
- Keep up documentation with latest code"
* tag 'erofs-for-5.5-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs:
erofs: update documentation
erofs: zero out when listxattr is called with no xattr
Diffstat (limited to 'fs')
-rw-r--r-- | fs/erofs/xattr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/erofs/xattr.c b/fs/erofs/xattr.c index a13a78725c57..b766c3ee5fa8 100644 --- a/fs/erofs/xattr.c +++ b/fs/erofs/xattr.c @@ -649,6 +649,8 @@ ssize_t erofs_listxattr(struct dentry *dentry, struct listxattr_iter it; ret = init_inode_xattrs(d_inode(dentry)); + if (ret == -ENOATTR) + return 0; if (ret) return ret; |