[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] cryptodev: fix asserting single queue
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH] cryptodev: fix asserting single queue |
Date: |
Wed, 22 Mar 2017 10:33:12 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 03/22/2017 09:56 AM, Halil Pasic wrote:
>
>
> On 03/22/2017 01:36 PM, Halil Pasic wrote:
>> 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.
>>
>> Signed-off-by: Halil Pasic <address@hidden>
>
> Sorry guys, I forgot to give credit to the reporter.
>
> Reported-by: Boris Fiuczynski <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
>> ---
>> backends/cryptodev-builtin.c | 2 --
>> 1 file changed, 2 deletions(-)
>>
>> diff --git a/backends/cryptodev-builtin.c b/backends/cryptodev-builtin.c
>> index 82a068e..137c7a6 100644
>> --- a/backends/cryptodev-builtin.c
>> +++ b/backends/cryptodev-builtin.c
>> @@ -359,8 +359,6 @@ static void cryptodev_builtin_cleanup(
>> }
>> }
>>
>> - assert(queues == 1);
>> -
>> for (i = 0; i < queues; i++) {
>> cc = backend->conf.peers.ccs[i];
>> if (cc) {
>>
>
>
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature