DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] crypto/scheduler: fix slave name parsing
@ 2017-07-07  5:17 Fan Zhang
  2017-07-11 14:22 ` De Lara Guarch, Pablo
  2017-07-11 14:24 ` De Lara Guarch, Pablo
  0 siblings, 2 replies; 3+ messages in thread
From: Fan Zhang @ 2017-07-07  5:17 UTC (permalink / raw)
  To: dev; +Cc: pablo.de.lara.guarch

Fixes: 503e9c5afb38 ("crypto/scheduler: register as vdev driver")

This patch fixes the incorrect index checking in parse_slave
function.

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
---
 drivers/crypto/scheduler/scheduler_pmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/scheduler/scheduler_pmd.c b/drivers/crypto/scheduler/scheduler_pmd.c
index 0f57fbe..400fc4f 100644
--- a/drivers/crypto/scheduler/scheduler_pmd.c
+++ b/drivers/crypto/scheduler/scheduler_pmd.c
@@ -325,7 +325,7 @@ parse_slave_arg(const char *key __rte_unused,
 {
 	struct scheduler_init_params *param = extra_args;
 
-	if (param->nb_slaves >= RTE_CRYPTODEV_SCHEDULER_MAX_NB_SLAVES - 1) {
+	if (param->nb_slaves >= RTE_CRYPTODEV_SCHEDULER_MAX_NB_SLAVES) {
 		CS_LOG_ERR("Too many slaves.\n");
 		return -ENOMEM;
 	}
-- 
2.9.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-11 14:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-07  5:17 [dpdk-dev] [PATCH] crypto/scheduler: fix slave name parsing Fan Zhang
2017-07-11 14:22 ` De Lara Guarch, Pablo
2017-07-11 14:24 ` De Lara Guarch, Pablo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).