aboutsummaryrefslogtreecommitdiffstats
path: root/net/mptcp/pm.c
diff options
context:
space:
mode:
authorGeliang Tang <[email protected]>2025-03-13 10:20:51 +0000
committerPaolo Abeni <[email protected]>2025-03-20 09:14:48 +0000
commitfa123489e7ef5c5c26d530bc4d7411bca7253c69 (patch)
tree862c44b68d628005e1866f10bb9d875cba04fe56 /net/mptcp/pm.c
parentmptcp: pm: split netlink and in-kernel init (diff)
downloadkernel-fa123489e7ef5c5c26d530bc4d7411bca7253c69.tar.gz
kernel-fa123489e7ef5c5c26d530bc4d7411bca7253c69.zip
mptcp: pm: in-kernel: use kmemdup helper
Instead of using kmalloc() or kzalloc() to allocate an entry and then immediately duplicate another entry to the newly allocated one, kmemdup() helper can be used to simplify the code. Signed-off-by: Geliang Tang <[email protected]> Reviewed-by: Matthieu Baerts (NGI0) <[email protected]> Signed-off-by: Matthieu Baerts (NGI0) <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/20250313-net-next-mptcp-pm-ops-intro-v1-2-f4e4a88efc50@kernel.org Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/mptcp/pm.c')
0 files changed, 0 insertions, 0 deletions