]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bonding: fix error checking in bond_debug_reregister()
authorQi Zheng <zhengqi.arch@bytedance.com>
Thu, 2 Feb 2023 09:32:55 +0000 (17:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Feb 2023 16:22:23 +0000 (17:22 +0100)
commitcafa2ad4f1d71a0cc6e079f04ca2f786314fd7cc
tree290d33827cc234c0a1b836d9196f1cd8b58a74a0
parent30fdf660356f708917b722a9aa01d70d27d96280
bonding: fix error checking in bond_debug_reregister()

[ Upstream commit cbe83191d40d8925b7a99969d037d2a0caf69294 ]

Since commit ff9fb72bc077 ("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: ff9fb72bc077 ("debugfs: return error values, not NULL")
Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>
Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Link: https://lore.kernel.org/r/20230202093256.32458-1-zhengqi.arch@bytedance.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/bonding/bond_debugfs.c