]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mptcp: pm: add a build check for userspace_pm_dump_addr
authorGeliang Tang <tanggeliang@kylinos.cn>
Fri, 21 Feb 2025 15:43:56 +0000 (16:43 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Feb 2025 02:23:43 +0000 (18:23 -0800)
commit63132fb054744e58de61d45a6d4f2a707cdfcfb3
tree7636cf21e64c32aa24611ba521b25e451dcc83ba
parent145dc6cc4abdb3b76eb01a0943a540db2a01ebe6
mptcp: pm: add a build check for userspace_pm_dump_addr

This patch adds a build check for mptcp_userspace_pm_dump_addr() to make
sure there is enough space in 'cb->ctx' to store an address id bitmap.

Just in case info stored in 'cb->ctx' are increased later.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250221-net-next-mptcp-pm-misc-cleanup-3-v1-3-2b70ab1cee79@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_userspace.c