diff options
author | KaiGai Kohei <kaigai@ak.jp.nec.com> | 2006-06-11 10:45:22 +0900 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-06-27 16:17:04 +0100 |
commit | a1ae76e96a18edf4b8a4d4e102762060c26d1c6a (patch) | |
tree | f99d85e26f618556898ed0775bf2fc4b71555d37 /fs | |
parent | c9f700f840bd481b3e01fcad1ba8da01794a6726 (diff) | |
download | linux-3.10-a1ae76e96a18edf4b8a4d4e102762060c26d1c6a.tar.gz linux-3.10-a1ae76e96a18edf4b8a4d4e102762060c26d1c6a.tar.bz2 linux-3.10-a1ae76e96a18edf4b8a4d4e102762060c26d1c6a.zip |
[JFFS2][XATTR] Fix ACL bug when updating null xattr by null ACL.
This patch enable to handle the case when updating null xattr
by null ACL.
When we try to set NULL into NULL xattr, xattr subsystem returns
-ENODATA. This patch enables to handle this error code.
[2/3] jffs2-xattr-v6-02-fix_posixacl_bug.patch
Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/jffs2/acl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/jffs2/acl.c b/fs/jffs2/acl.c index 320dd48b834..9c2077e7e08 100644 --- a/fs/jffs2/acl.c +++ b/fs/jffs2/acl.c @@ -267,6 +267,8 @@ static int jffs2_set_acl(struct inode *inode, int type, struct posix_acl *acl) } rc = do_jffs2_setxattr(inode, xprefix, "", value, size, 0); + if (!value && rc == -ENODATA) + rc = 0; if (value) kfree(value); if (!rc) { |