[dpdk-stable] patch 'app/eventdev: check timer adadpters number' has been queued to stable release 19.11.6

luca.boccassi at gmail.com luca.boccassi at gmail.com
Tue Nov 17 12:14:09 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 11/19/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.

Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/82091c3e07e67ea0e7db4983c5a1cc4a2c41107a

Thanks.

Luca Boccassi

---
>From 82091c3e07e67ea0e7db4983c5a1cc4a2c41107a Mon Sep 17 00:00:00 2001
From: Pavan Nikhilesh <pbhagavatula at marvell.com>
Date: Thu, 12 Nov 2020 23:13:29 +0530
Subject: [PATCH] app/eventdev: check timer adadpters number

[ upstream commit 15c19f36f59ed56b87ab4eb192a859bf273dbccc ]

Fix SEGFAULT when nb_timer_adapters command line parameter is
set to 0.

Fixes: 98c6292105d4 ("app/eventdev: add options for event timer adapter")

Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>
---
 app/test-eventdev/evt_options.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app/test-eventdev/evt_options.c b/app/test-eventdev/evt_options.c
index c60b61a904..4f4800d99d 100644
--- a/app/test-eventdev/evt_options.c
+++ b/app/test-eventdev/evt_options.c
@@ -197,6 +197,10 @@ evt_parse_nb_timer_adptrs(struct evt_options *opt, const char *arg)
 	int ret;
 
 	ret = parser_read_uint8(&(opt->nb_timer_adptrs), arg);
+	if (opt->nb_timer_adptrs <= 0) {
+		evt_err("Number of timer adapters cannot be <= 0");
+		return -EINVAL;
+	}
 
 	return ret;
 }
-- 
2.27.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-11-17 11:13:14.466432833 +0000
+++ 0035-app-eventdev-check-timer-adadpters-number.patch	2020-11-17 11:13:12.953117254 +0000
@@ -1 +1 @@
-From 15c19f36f59ed56b87ab4eb192a859bf273dbccc Mon Sep 17 00:00:00 2001
+From 82091c3e07e67ea0e7db4983c5a1cc4a2c41107a Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 15c19f36f59ed56b87ab4eb192a859bf273dbccc ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -18 +19 @@
-index 6994ac453c..0d04ea9f8d 100644
+index c60b61a904..4f4800d99d 100644


More information about the stable mailing list