]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:46:00 +0000 (19:46 +0100)
commitc357fe55e4e2c3e2f45357cdbf065be183816230
treed1cbf295d300d7c48f9e2ac2c9ced49eeb0490fb
parent58282978fe278202bb9aebe41fc679f10e5dc447
f2fs: fix wrong return value of f2fs_acl_create

[ Upstream commit f6176473a0c7472380eef72ebeb330cf9485bf0a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/acl.c