Commit bb00aef6 authored by Baokun Li's avatar Baokun Li Committed by Greg Kroah-Hartman
Browse files

cachefiles: remove err_put_fd label in cachefiles_ondemand_daemon_read()



[ Upstream commit 3e6d704f ]

The err_put_fd label is only used once, so remove it to make the code
more readable. In addition, the logic for deleting error request and
CLOSE request is merged to simplify the code.

Signed-off-by: default avatarBaokun Li <libaokun1@huawei.com>
Link: https://lore.kernel.org/r/20240522114308.2402121-6-libaokun@huaweicloud.com


Acked-by: default avatarJeff Layton <jlayton@kernel.org>
Reviewed-by: default avatarJia Zhu <zhujia.zj@bytedance.com>
Reviewed-by: default avatarGao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: default avatarJingbo Xu <jefflexu@linux.alibaba.com>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
Stable-dep-of: 4b4391e7 ("cachefiles: defer exposing anon_fd until after copy_to_user() succeeds")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent cb55625f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment