summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHaoxiang Li <lihaoxiang@isrc.iscas.ac.cn>2026-05-25 11:26:11 +0300
committerJakub Kicinski <kuba@kernel.org>2026-05-27 05:03:37 +0300
commit2bcf59eefb9f00a2b1d426b639ee49c305a80695 (patch)
treebd3173ba2292e964f8230dfac8234a005fb74ce9 /include
parent46d111a3ef3b5972804dcdce0833767143a12192 (diff)
downloadlinux-2bcf59eefb9f00a2b1d426b639ee49c305a80695.tar.xz
net: thunderx: fix PTP device ref leak in nicvf_probe()
cavium_ptp_get() acquires a reference to the PTP PCI device through pci_get_device(). If any initialization step fails after cavium_ptp_get(), the PTP PCI device reference is leaked. Add a common error path to release the PTP reference before returning from probe failures. Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn> Link: https://patch.msgid.link/20260525082611.61817-1-lihaoxiang@isrc.iscas.ac.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions