Message ID | 3ee604f983ceb48eb9f2443967a740f121f019c4.1741347453.git.tanggeliang@kylinos.cn (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | cleanups for BPF PM part 5 v10 | expand |
diff --git a/net/mptcp/ctrl.c b/net/mptcp/ctrl.c index 14c32d06f51e..e6e8b4dde5bc 100644 --- a/net/mptcp/ctrl.c +++ b/net/mptcp/ctrl.c @@ -183,12 +183,12 @@ static int proc_blackhole_detect_timeout(const struct ctl_table *table, static int mptcp_set_path_manager(char *path_manager, const char *name) { - struct mptcp_pm_ops *pm; + struct mptcp_pm_ops *pm_ops; int ret = 0; rcu_read_lock(); - pm = mptcp_pm_find(name); - if (pm) + pm_ops = mptcp_pm_find(name); + if (pm_ops) strscpy(path_manager, name, MPTCP_PM_NAME_MAX); else ret = -ENOENT;