diff options
author | 2024-12-05 16:55:15 +0200 | |
---|---|---|
committer | 2024-12-07 17:56:46 -0800 | |
commit | 4b01bec25bef62544228bce06db6a3afa5d3d6bb (patch) | |
tree | 5fabda7585c872c21aaa256a0e2d308b5ab1ab6f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ip: Return drop reason if in_dev is NULL in ip_route_input_rcu(). (diff) | |
download | wireguard-linux-4b01bec25bef62544228bce06db6a3afa5d3d6bb.tar.xz wireguard-linux-4b01bec25bef62544228bce06db6a3afa5d3d6bb.zip |
net: mscc: ocelot: fix memory leak on ocelot_port_add_txtstamp_skb()
If ocelot_port_add_txtstamp_skb() fails, for example due to a full PTP
timestamp FIFO, we must undo the skb_clone_sk() call with kfree_skb().
Otherwise, the reference to the skb clone is lost.
Fixes: 52849bcf0029 ("net: mscc: ocelot: avoid overflowing the PTP timestamp FIFO")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20241205145519.1236778-2-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions