]> 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>
Fri, 10 Mar 2023 08:33:01 +0000 (09:33 +0100)
commitfadd5de67c43cdc1466d00d3b5c588cf0da57112
tree8cbf5c13801661e4d0893aa55586d882f133f012
parent23528d2c72ac62c872fa99371b8b67a09b3346f9
OPP: fix error checking in opp_migrate_dentry()

[ Upstream commit 01da35f31d9aafe617f2ee15f4f783135116fb38 ]

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