]> asedeno.scripts.mit.edu Git - linux.git/commit
f2fs: fix wrong return value of f2fs_acl_create
authorTiezhu Yang <kernelpatch@126.com>
Tue, 20 Nov 2018 23:21:38 +0000 (07:21 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 26 Nov 2018 23:54:37 +0000 (15:54 -0800)
commitf6176473a0c7472380eef72ebeb330cf9485bf0a
treef2bdc018324ab3cb8f8bf486b7bb340a408c6cd4
parentf5d5510e7389fa264337fb524346bac9eb93adc8
f2fs: fix wrong return value of f2fs_acl_create

When call f2fs_acl_create_masq() failed, the caller f2fs_acl_create()
should return -EIO instead of -ENOMEM, this patch makes it consistent
with posix_acl_create() which has been fixed in commit beaf226b863a
("posix_acl: don't ignore return value of posix_acl_create_masq()").

Fixes: 83dfe53c185e ("f2fs: fix reference leaks in f2fs_acl_create")
Signed-off-by: Tiezhu Yang <kernelpatch@126.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/acl.c