Commit b7bad50a authored by Halil Pasic's avatar Halil Pasic Committed by Gonglei

cryptodev: fix asserting single queue

We already check for queues == 1 in cryptodev_builtin_init and when that
is not true raise an error. But before that error is reported the
assertion in cryptodev_builtin_cleanup kicks in (because object is being
finalized and freed).

Let's remove assert(queues == 1) form cryptodev_builtin_cleanup as it
does only harm and no good.
Reported-by: 's avatarBoris Fiuczynski <>
Signed-off-by: 's avatarHalil Pasic <>
Reviewed-by: 's avatarEric Blake <>
Signed-off-by: 's avatarGonglei <>
parent 50d19cf3
......@@ -361,8 +361,6 @@ static void cryptodev_builtin_cleanup(
assert(queues == 1);
for (i = 0; i < queues; i++) {
cc = backend->conf.peers.ccs[i];
if (cc) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment