]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mptcp: netlink: fix some error return code
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 10 Dec 2022 00:28:07 +0000 (16:28 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jan 2023 10:15:48 +0000 (11:15 +0100)
commitaeaeebed5f0711feb5bf507e983991c77130c7ce
treef22f4c15b6ed9b1658aa43475c84028c7b67b316
parentc7ce2db3f590ae77d88a367405a05c30cca0fa06
mptcp: netlink: fix some error return code

commit e0fe1123ab2b07d2cd5475660bd0b4e6993ffaa7 upstream.

Fix to return negative error code -EINVAL from some error handling
case instead of 0, as done elsewhere in those functions.

Fixes: 9ab4807c84a4 ("mptcp: netlink: Add MPTCP_PM_CMD_ANNOUNCE")
Fixes: 702c2f646d42 ("mptcp: netlink: allow userspace-driven subflow establishment")
Cc: stable@vger.kernel.org
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mptcp/pm_userspace.c