crypto/scheduler: fix slave name parsing
authorFan Zhang <roy.fan.zhang@intel.com>
Fri, 7 Jul 2017 05:17:30 +0000 (06:17 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 19 Jul 2017 11:10:40 +0000 (14:10 +0300)
commit829d1327310be6d79ad8d6617f7abcc1ad1ad202
tree7dfc5ad22b6ca60e400af9feb25254bd788afd0a
parent30883f3e1d4679774e306ef76d61cf4fd6eddd9b
crypto/scheduler: fix slave name parsing

This patch fixes the incorrect index checking in parse_slave
function.

Fixes: 503e9c5afb38 ("crypto/scheduler: register as vdev driver")
Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
drivers/crypto/scheduler/scheduler_pmd.c