]> git.baikalelectronics.ru Git - kernel.git/commit
OPP: fix error checking in opp_migrate_dentry()
authorQi Zheng <zhengqi.arch@bytedance.com>
Wed, 8 Feb 2023 04:00:37 +0000 (12:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:41 +0000 (16:43 +0100)
commit592593dc0a55b4971b1d1c6ecf23a3e00d5b0e6d
tree59dfb7ac4d3cc9df5174438815e2041e6244d98a
parente6f9ed52612a91570401d2093ec88e0941e0fd33
OPP: fix error checking in opp_migrate_dentry()

[ Upstream commit eca4c0eea53432ec4b711b2a8ad282cbad231b4f ]

Since commit 846632d286c9 ("debugfs: return error values,
not NULL") changed return value of debugfs_rename() in
error cases from %NULL to %ERR_PTR(-ERROR), we should
also check error values instead of NULL.

Fixes: 846632d286c9 ("debugfs: return error values, not NULL")
Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/opp/debugfs.c