]> git.baikalelectronics.ru Git - kernel.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)
commit791aab074264267750649a0118e125180c70bce3
treef2bdc018324ab3cb8f8bf486b7bb340a408c6cd4
parent86cad1394b8b8b13c60d756d732643e148e170e8
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 600929bf72d4
("posix_acl: don't ignore return value of posix_acl_create_masq()").

Fixes: 22dc6fd5f4f7 ("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