Skip to content
Snippets Groups Projects
Commit 655111b8 authored by Eugene Syromiatnikov's avatar Eugene Syromiatnikov Committed by Jakub Kicinski
Browse files

mptcp: correct MPTCP_SUBFLOW_ATTR_SSN_OFFSET reserved size


ssn_offset field is u32 and is placed into the netlink response with
nla_put_u32(), but only 2 bytes are reserved for the attribute payload
in subflow_get_info_size() (even though it makes no difference
in the end, as it is aligned up to 4 bytes).  Supply the correct
argument to the relevant nla_total_size() call to make it less
confusing.

Fixes: 5147dfb5 ("mptcp: allow dumping subflow context to userspace")
Signed-off-by: default avatarEugene Syromiatnikov <esyr@redhat.com>
Reviewed-by: default avatarMatthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20240812065024.GA19719@asgard.redhat.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent df934abb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment