patch 'gpu/cuda: fix memory list cleanup' has been queued to stable release 21.11.1
Kevin Traynor
ktraynor at redhat.com
Mon Feb 21 16:33:19 CET 2022
Hi,
FYI, your patch has been queued to stable release 21.11.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 02/26/22. 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/a8dd54379d4454ea6e8c691a3a89e1cdf9e89fa6
Thanks.
Kevin
---
>From a8dd54379d4454ea6e8c691a3a89e1cdf9e89fa6 Mon Sep 17 00:00:00 2001
From: Elena Agostini <eagostini at nvidia.com>
Date: Tue, 21 Dec 2021 20:50:42 +0000
Subject: [PATCH] gpu/cuda: fix memory list cleanup
[ upstream commit 98ddd04c6aa5b2953709f2707aeaba0461a9ef28 ]
Memory list cleanup (called by cuda_mem_free)
was not properly set the new head of the list
when deleting an entry.
Fixes: 1306a73b1958 ("gpu/cuda: introduce CUDA driver")
Signed-off-by: Elena Agostini <eagostini at nvidia.com>
---
drivers/gpu/cuda/cuda.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/cuda/cuda.c b/drivers/gpu/cuda/cuda.c
index 882df08e56..d3a7234a09 100644
--- a/drivers/gpu/cuda/cuda.c
+++ b/drivers/gpu/cuda/cuda.c
@@ -438,7 +438,9 @@ mem_list_del_item(cuda_ptr_key pk)
/* if key is in head */
- if (mem_alloc_list_cur->prev == NULL)
+ if (mem_alloc_list_cur->prev == NULL) {
mem_alloc_list_head = mem_alloc_list_cur->next;
- else {
+ if (mem_alloc_list_head != NULL)
+ mem_alloc_list_head->prev = NULL;
+ } else {
mem_alloc_list_cur->prev->next = mem_alloc_list_cur->next;
if (mem_alloc_list_cur->next != NULL)
--
2.34.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2022-02-21 15:22:44.908145107 +0000
+++ 0010-gpu-cuda-fix-memory-list-cleanup.patch 2022-02-21 15:22:44.036704001 +0000
@@ -1 +1 @@
-From 98ddd04c6aa5b2953709f2707aeaba0461a9ef28 Mon Sep 17 00:00:00 2001
+From a8dd54379d4454ea6e8c691a3a89e1cdf9e89fa6 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 98ddd04c6aa5b2953709f2707aeaba0461a9ef28 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list