diff options
| author | Geliang Tang <tanggeliang@kylinos.cn> | 2024-11-04 13:31:42 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-11-14 13:19:38 +0100 |
| commit | 30db2a6485502d963de6cb867ca4cef2903d08ad (patch) | |
| tree | c723d0453ceb163e968d4cb130cc7e31ea0569bf /arch/arm64/kernel | |
| parent | 1325e838089da25217f4b403318a270fcdf88f34 (diff) | |
| download | linux-30db2a6485502d963de6cb867ca4cef2903d08ad.tar.gz linux-30db2a6485502d963de6cb867ca4cef2903d08ad.tar.bz2 linux-30db2a6485502d963de6cb867ca4cef2903d08ad.zip | |
mptcp: use sock_kfree_s instead of kfree
commit 99635c91fb8b860a6404b9bc8b769df7bdaa2ae3 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm64/kernel')
0 files changed, 0 insertions, 0 deletions
