Skip to content

Commit 04536b2

Browse files
committed
Revert "crypto/virtio: fix cookies leak"
This commit causes a virtio regression: EAL: Error: Invalid memory Bugzilla ID: 1849 This reverts commit 8b0d855.
1 parent 8ab51c7 commit 04536b2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/crypto/virtio/virtio_cryptodev.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ void
266266
virtio_crypto_queue_release(struct virtqueue *vq)
267267
{
268268
struct virtio_crypto_hw *hw;
269-
uint16_t i;
270269

271270
PMD_INIT_FUNC_TRACE();
272271

@@ -277,9 +276,6 @@ virtio_crypto_queue_release(struct virtqueue *vq)
277276

278277
rte_memzone_free(vq->mz);
279278
rte_mempool_free(vq->mpool);
280-
for (i = 0; i < vq->vq_nentries; i++)
281-
rte_free(vq->vq_descx[i].cookie);
282-
283279
rte_free(vq);
284280
}
285281
}

0 commit comments

Comments
 (0)