From: Geliang Tang <geliang@xxxxxxxxxx> Date: Fri, 28 Feb 2025 18:01:32 +0800 > From: Geliang Tang <tanggeliang@xxxxxxxxxx> > > 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 <tanggeliang@xxxxxxxxxx> Reviewed-by: Kuniyuki Iwashima <kuniyu@xxxxxxxxxx>