bonding: fix error checking in bond_debug_reregister()
stable inclusion from stable-v5.10.168 commit cafa2ad4f1d71a0cc6e079f04ca2f786314fd7cc category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7URR4 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cafa2ad4f1d71a0cc6e079f04ca2f786314fd7cc ---------------------------------------------------- [ Upstream commit cbe83191 ] Since commit ff9fb72b ("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: ff9fb72b ("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> Signed-off-by:
zhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
Loading
Please sign in to comment