Go to file
Horatiu Vultur 24b2429546 net: phy: mscc: Fix memory leak when using one step timestamping
[ Upstream commit 846992645b ]

Fix memory leak when running one-step timestamping. When running
one-step sync timestamping, the HW is configured to insert the TX time
into the frame, so there is no reason to keep the skb anymore. As in
this case the HW will never generate an interrupt to say that the frame
was timestamped, then the frame will never released.
Fix this by freeing the frame in case of one-step timestamping.

Fixes: 7d272e63e0 ("net: phy: mscc: timestamping and PHC support")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://patch.msgid.link/20250522115722.2827199-1-horatiu.vultur@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 9b2bfdbf43 ("phy: mscc: Stop taking ts_lock for tx_queue and use its own lock")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-09 18:50:20 +02:00
arch arm64: dts: rockchip: Add vcc-supply to SPI flash on rk3399-pinebook-pro 2025-09-09 18:50:18 +02:00
block
certs
crypto
Documentation
drivers net: phy: mscc: Fix memory leak when using one step timestamping 2025-09-09 18:50:20 +02:00
fs fs: writeback: fix use-after-free in __mark_inode_dirty() 2025-09-09 18:50:17 +02:00
include ptp: Add generic PTP is_sync() function 2025-09-09 18:50:20 +02:00
init
io_uring
ipc
kernel bpf: Fix oob access in cgroup local storage 2025-09-09 18:50:17 +02:00
lib
LICENSES
mm
net ptp: Add generic PTP is_sync() function 2025-09-09 18:50:20 +02:00
samples
scripts
security
sound ASoC: codecs: tx-macro: correct tx_macro_component_drv name 2025-09-04 14:28:44 +02:00
tools
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 5.15.191 2025-09-04 14:28:48 +02:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.