Thread (8 messages) 8 messages, 4 authors, 2025-03-04

Re: [PATCH net-next v2 2/3] net: use sock_kmemdup for ip_options

From: Kuniyuki Iwashima <hidden>
Date: 2025-03-03 23:18:51
Also in: linux-sctp, mptcp

From: Geliang Tang <geliang@kernel.org>
Date: Fri, 28 Feb 2025 18:01:32 +0800
From: Geliang Tang <redacted>

Instead of using sock_kmalloc() to allocate an ip_options and then
immediately duplicate another ip_options to the newly allocated one in
ipv6_dup_options(), mptcp_copy_ip_options() and sctp_v4_copy_ip_options(),
the newly added sock_kmemdup() helper can be used to simplify the code.

Signed-off-by: Geliang Tang <redacted>
Reviewed-by: Kuniyuki Iwashima <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help