[dpdk-stable] patch 'examples/vhost_blk: check driver start failure' has been queued to stable release 19.11.6

luca.boccassi at gmail.com luca.boccassi at gmail.com
Wed Oct 28 11:44:16 CET 2020


Hi,

FYI, your patch has been queued to stable release 19.11.6

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

Thanks.

Luca Boccassi

---
>From abe125b262bf316c05576f549a0bfc47e396b140 Mon Sep 17 00:00:00 2001
From: Yunjian Wang <wangyunjian at huawei.com>
Date: Fri, 25 Sep 2020 19:22:06 +0800
Subject: [PATCH] examples/vhost_blk: check driver start failure

[ upstream commit dc9e658013d9c2be798f9ff43b8cd2c63c844f17 ]

This checks the return value from the function
rte_vhost_driver_start.

Coverity issue: 362027
Fixes: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample")

Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
Reviewed-by: Chenbo Xia <chenbo.xia at intel.com>
---
 examples/vhost_blk/vhost_blk.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/examples/vhost_blk/vhost_blk.c b/examples/vhost_blk/vhost_blk.c
index b757c9228b..32c88628c4 100644
--- a/examples/vhost_blk/vhost_blk.c
+++ b/examples/vhost_blk/vhost_blk.c
@@ -1082,7 +1082,11 @@ int main(int argc, char *argv[])
 		return -1;
 	}
 
-	rte_vhost_driver_start(dev_pathname);
+	ret = rte_vhost_driver_start(dev_pathname);
+	if (ret < 0) {
+		fprintf(stderr, "Failed to start vhost driver.\n");
+		return -1;
+	}
 
 	/* loop for exit the application */
 	while (1)
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-10-28 10:35:14.798644296 +0000
+++ 0097-examples-vhost_blk-check-driver-start-failure.patch	2020-10-28 10:35:11.648832144 +0000
@@ -1,14 +1,15 @@
-From dc9e658013d9c2be798f9ff43b8cd2c63c844f17 Mon Sep 17 00:00:00 2001
+From abe125b262bf316c05576f549a0bfc47e396b140 Mon Sep 17 00:00:00 2001
 From: Yunjian Wang <wangyunjian at huawei.com>
 Date: Fri, 25 Sep 2020 19:22:06 +0800
 Subject: [PATCH] examples/vhost_blk: check driver start failure
 
+[ upstream commit dc9e658013d9c2be798f9ff43b8cd2c63c844f17 ]
+
 This checks the return value from the function
 rte_vhost_driver_start.
 
 Coverity issue: 362027
 Fixes: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample")
-Cc: stable at dpdk.org
 
 Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
 Reviewed-by: Chenbo Xia <chenbo.xia at intel.com>
@@ -17,12 +18,12 @@
  1 file changed, 5 insertions(+), 1 deletion(-)
 
 diff --git a/examples/vhost_blk/vhost_blk.c b/examples/vhost_blk/vhost_blk.c
-index f4c59437a0..8f5d61a589 100644
+index b757c9228b..32c88628c4 100644
 --- a/examples/vhost_blk/vhost_blk.c
 +++ b/examples/vhost_blk/vhost_blk.c
-@@ -877,7 +877,11 @@ int main(int argc, char *argv[])
- 
- 	signal(SIGINT, signal_handler);
+@@ -1082,7 +1082,11 @@ int main(int argc, char *argv[])
+ 		return -1;
+ 	}
  
 -	rte_vhost_driver_start(dev_pathname);
 +	ret = rte_vhost_driver_start(dev_pathname);


More information about the stable mailing list