patch 'bus/pci: fix mapping leak in bus cleanup' has been queued to stable release 25.11.3

Kevin Traynor ktraynor at redhat.com
Tue Jul 28 17:56:05 CEST 2026


Hi,

FYI, your patch has been queued to stable release 25.11.3

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 08/01/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/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/754c38396c35a1069a24bc7713f23557fe1647a6

Thanks.

Kevin

---
>From 754c38396c35a1069a24bc7713f23557fe1647a6 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 bf5df3d94e..58ec6abad9 100644
--- a/drivers/bus/pci/pci_common.c
+++ b/drivers/bus/pci/pci_common.c
@@ -442,4 +442,8 @@ pci_cleanup(void)
 			error = -1;
 		}
+
+		if (drv->drv_flags & RTE_PCI_DRV_NEED_MAPPING)
+			rte_pci_unmap_device(dev);
+
 		dev->driver = NULL;
 		dev->device.driver = NULL;
-- 
2.55.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-28 16:54:51.835700605 +0100
+++ 0035-bus-pci-fix-mapping-leak-in-bus-cleanup.patch	2026-07-28 16:54:50.773815384 +0100
@@ -1 +1 @@
-From 858273503bf8643c4befa276b1c4262802b8953b Mon Sep 17 00:00:00 2001
+From 754c38396c35a1069a24bc7713f23557fe1647a6 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 bf5df3d94e..58ec6abad9 100644
@@ -20 +21 @@
-@@ -345,4 +345,8 @@ pci_cleanup(void)
+@@ -442,4 +442,8 @@ pci_cleanup(void)
@@ -26,0 +28 @@
+ 		dev->driver = NULL;
@@ -28 +29,0 @@
- 



More information about the stable mailing list