summaryrefslogtreecommitdiff
path: root/samples/rust
diff options
context:
space:
mode:
authorGeliang Tang <tanggeliang@kylinos.cn>2024-11-04 15:31:42 +0300
committerJakub Kicinski <kuba@kernel.org>2024-11-06 04:51:09 +0300
commit99635c91fb8b860a6404b9bc8b769df7bdaa2ae3 (patch)
tree36a446b3f88ccd27fe5633db2b47c3da27334794 /samples/rust
parentcfbbd4859882a5469f6f4945937a074ee78c4b46 (diff)
downloadlinux-99635c91fb8b860a6404b9bc8b769df7bdaa2ae3.tar.xz
mptcp: use sock_kfree_s instead of kfree
The local address entries on userspace_pm_local_addr_list are allocated by sock_kmalloc(). It's then required to use sock_kfree_s() instead of kfree() to free these entries in order to adjust the allocated size on the sk side. Fixes: 24430f8bf516 ("mptcp: add address into userspace pm list") Cc: stable@vger.kernel.org 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/20241104-net-mptcp-misc-6-12-v1-2-c13f2ff1656f@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'samples/rust')
0 files changed, 0 insertions, 0 deletions