mptcp: netlink: fix some error return code
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 10 Dec 2022 00:28:07 +0000 (16:28 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 12 Dec 2022 21:11:23 +0000 (13:11 -0800)
commite0fe1123ab2b07d2cd5475660bd0b4e6993ffaa7
tree957ce9ff44e21c45c59b156f664f4678fc76c1a0
parent84698dad0641ffdb7273f3b31664ce32a2e1386c
mptcp: netlink: fix some error return code

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>
net/mptcp/pm_userspace.c