patch 'bus/dpaa: fix memory leak in bus scan' has been queued to stable release 21.11.8
Kevin Traynor
ktraynor at redhat.com
Fri Aug 23 18:18:25 CEST 2024
Hi,
FYI, your patch has been queued to stable release 21.11.8
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/28/24. 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/705e44a778bea66a1c694c841a275d236620cafc
Thanks.
Kevin
---
>From 705e44a778bea66a1c694c841a275d236620cafc Mon Sep 17 00:00:00 2001
From: Apeksha Gupta <apeksha.gupta at nxp.com>
Date: Wed, 10 Jul 2024 14:25:28 +0530
Subject: [PATCH] bus/dpaa: fix memory leak in bus scan
[ upstream commit de0833ffe31739fd40789b1580025bc849d8871f ]
Resource leak:
variable dev is going out of scope leaks the storage.
Coverity issue: 373703
Fixes: d61138d4f0e2 ("drivers: remove direct access to interrupt handle")
Signed-off-by: Apeksha Gupta <apeksha.gupta at nxp.com>
Signed-off-by: Vanshika Shukla <vanshika.shukla at nxp.com>
---
drivers/bus/dpaa/dpaa_bus.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c
index 79926c73bb..81ac971fbe 100644
--- a/drivers/bus/dpaa/dpaa_bus.c
+++ b/drivers/bus/dpaa/dpaa_bus.c
@@ -179,4 +179,5 @@ dpaa_create_device_list(void)
DPAA_BUS_LOG(ERR, "Failed to allocate intr handle");
ret = -ENOMEM;
+ free(dev);
goto cleanup;
}
@@ -230,4 +231,5 @@ dpaa_create_device_list(void)
DPAA_BUS_LOG(ERR, "Failed to allocate intr handle");
ret = -ENOMEM;
+ free(dev);
goto cleanup;
}
--
2.46.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2024-08-23 17:18:12.061869638 +0100
+++ 0077-bus-dpaa-fix-memory-leak-in-bus-scan.patch 2024-08-23 17:18:09.754430224 +0100
@@ -1 +1 @@
-From de0833ffe31739fd40789b1580025bc849d8871f Mon Sep 17 00:00:00 2001
+From 705e44a778bea66a1c694c841a275d236620cafc Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit de0833ffe31739fd40789b1580025bc849d8871f ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index b8f41ec069..1f6997c77e 100644
+index 79926c73bb..81ac971fbe 100644
@@ -23 +24 @@
-@@ -189,4 +189,5 @@ dpaa_create_device_list(void)
+@@ -179,4 +179,5 @@ dpaa_create_device_list(void)
@@ -29 +30 @@
-@@ -240,4 +241,5 @@ dpaa_create_device_list(void)
+@@ -230,4 +231,5 @@ dpaa_create_device_list(void)
More information about the stable
mailing list