diff options
| author | Tung Nguyen <[email protected]> | 2025-04-03 09:24:31 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-04-08 08:15:33 +0000 |
| commit | 69ae94725f4fc9e75219d2d69022029c5b24bc9a (patch) | |
| tree | 38dbb8f01b9d86b26ab460f3a105c0759f9b0f81 /net/tls/tls_main.c | |
| parent | net: hold instance lock during NETDEV_CHANGE (diff) | |
| download | kernel-69ae94725f4fc9e75219d2d69022029c5b24bc9a.tar.gz kernel-69ae94725f4fc9e75219d2d69022029c5b24bc9a.zip | |
tipc: fix memory leak in tipc_link_xmit
In case the backlog transmit queue for system-importance messages is overloaded,
tipc_link_xmit() returns -ENOBUFS but the skb list is not purged. This leads to
memory leak and failure when a skb is allocated.
This commit fixes this issue by purging the skb list before tipc_link_xmit()
returns.
Fixes: 365ad353c256 ("tipc: reduce risk of user starvation during link congestion")
Signed-off-by: Tung Nguyen <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/tls/tls_main.c')
0 files changed, 0 insertions, 0 deletions
