patch 'vdpa/sfc: fix null dereference during config' has been queued to stable release 21.11.1

Kevin Traynor ktraynor at redhat.com
Mon Feb 21 16:36:00 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/5dfd488d82175f3ef522bb0bb0c1961fb45d3219

Thanks.

Kevin

---
>From 5dfd488d82175f3ef522bb0bb0c1961fb45d3219 Mon Sep 17 00:00:00 2001
From: Weiguo Li <liwg06 at foxmail.com>
Date: Sun, 30 Jan 2022 02:07:30 +0800
Subject: [PATCH] vdpa/sfc: fix null dereference during config

[ upstream commit d8875804e00b37a80efc6e1c97ac57f8ac2c7d91 ]

Fixes: b11961363b4a ("vdpa/sfc: support device configure and close")

Signed-off-by: Weiguo Li <liwg06 at foxmail.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
---
 drivers/vdpa/sfc/sfc_vdpa_ops.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/vdpa/sfc/sfc_vdpa_ops.c b/drivers/vdpa/sfc/sfc_vdpa_ops.c
index c4ce4474ef..b3d9b6cd56 100644
--- a/drivers/vdpa/sfc/sfc_vdpa_ops.c
+++ b/drivers/vdpa/sfc/sfc_vdpa_ops.c
@@ -612,5 +612,5 @@ sfc_vdpa_dev_config(int vid)
 	ops_data = sfc_vdpa_get_data_by_dev(vdpa_dev);
 	if (ops_data == NULL) {
-		sfc_vdpa_err(ops_data->dev_handle,
+		SFC_VDPA_GENERIC_LOG(ERR,
 			     "invalid vDPA device : %p, vid : %d",
 			     vdpa_dev, vid);
@@ -667,5 +667,5 @@ sfc_vdpa_dev_close(int vid)
 	ops_data = sfc_vdpa_get_data_by_dev(vdpa_dev);
 	if (ops_data == NULL) {
-		sfc_vdpa_err(ops_data->dev_handle,
+		SFC_VDPA_GENERIC_LOG(ERR,
 			     "invalid vDPA device : %p, vid : %d",
 			     vdpa_dev, vid);
-- 
2.34.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2022-02-21 15:22:48.250937299 +0000
+++ 0171-vdpa-sfc-fix-null-dereference-during-config.patch	2022-02-21 15:22:44.334704673 +0000
@@ -1 +1 @@
-From d8875804e00b37a80efc6e1c97ac57f8ac2c7d91 Mon Sep 17 00:00:00 2001
+From 5dfd488d82175f3ef522bb0bb0c1961fb45d3219 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit d8875804e00b37a80efc6e1c97ac57f8ac2c7d91 ]
+
@@ -7 +8,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list