]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Merge branch 'net-mana-fix-debugfs-directory-naming-and-file-lifecycle'
authorJakub Kicinski <kuba@kernel.org>
Sun, 12 Apr 2026 18:22:56 +0000 (11:22 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Apr 2026 18:22:56 +0000 (11:22 -0700)
Erni Sri Satya Vennela says:

====================
net: mana: Fix debugfs directory naming and file lifecycle

This series fixes two pre-existing debugfs issues in the MANA driver.

Patch 1 fixes the per-device debugfs directory naming to use the unique
PCI BDF address via pci_name(), avoiding a potential NULL pointer
dereference when pdev->slot is NULL (e.g. VFIO passthrough, nested KVM)
and preventing name collisions across multiple PFs or VFs.

Patch 2 moves the current_speed debugfs file creation from
mana_probe_port() to mana_init_port() so it survives detach/attach
cycles triggered by MTU changes or XDP program changes.
====================

Link: https://patch.msgid.link/20260408081224.302308-1-ernis@linux.microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge