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

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: default avatarBoris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Signed-off-by: default avatarHalil Pasic <pasic@linux.vnet.ibm.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Signed-off-by: default avatarGonglei <arei.gonglei@huawei.com>
parent 50d19cf3
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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) {