patch 'bus/pci: fix mapping leak in bus cleanup' has been queued to stable release 24.11.7
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Jul 6 12:19:57 CEST 2026
Hi,
FYI, your patch has been queued to stable release 24.11.7
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/05/26. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/c27f500a7f121b576fc83c6b7152d22a4ec281db
Thanks.
Luca Boccassi
---
>From c27f500a7f121b576fc83c6b7152d22a4ec281db Mon Sep 17 00:00:00 2001
From: David Marchand <david.marchand at redhat.com>
Date: Mon, 8 Jun 2026 13:56:47 +0200
Subject: [PATCH] bus/pci: fix mapping leak in bus cleanup
[ upstream commit 858273503bf8643c4befa276b1c4262802b8953b ]
When calling this bus cleanup, PCI resources were not unmapped.
Fixes: 1cab1a40ea9b ("bus: cleanup devices on shutdown")
Signed-off-by: David Marchand <david.marchand at redhat.com>
---
drivers/bus/pci/pci_common.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c
index 57c355e474..71f0cbb8a7 100644
--- a/drivers/bus/pci/pci_common.c
+++ b/drivers/bus/pci/pci_common.c
@@ -440,6 +440,10 @@ pci_cleanup(void)
error = -1;
}
dev->driver = NULL;
+
+ if (drv->drv_flags & RTE_PCI_DRV_NEED_MAPPING)
+ rte_pci_unmap_device(dev);
+
dev->device.driver = NULL;
free:
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-07-03 12:55:46.910034217 +0100
+++ 0005-bus-pci-fix-mapping-leak-in-bus-cleanup.patch 2026-07-03 12:55:46.578571570 +0100
@@ -1 +1 @@
-From 858273503bf8643c4befa276b1c4262802b8953b Mon Sep 17 00:00:00 2001
+From c27f500a7f121b576fc83c6b7152d22a4ec281db Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 858273503bf8643c4befa276b1c4262802b8953b ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -17 +18 @@
-index fd18b8772b..791e9a7b49 100644
+index 57c355e474..71f0cbb8a7 100644
@@ -20,2 +21 @@
-@@ -344,6 +344,10 @@ pci_cleanup(void)
- rte_errno = errno;
+@@ -440,6 +440,10 @@ pci_cleanup(void)
@@ -23,0 +24 @@
+ dev->driver = NULL;
More information about the stable
mailing list