crypto/virtio: fix memory leak
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 19 Jul 2018 09:05:56 +0000 (10:05 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 23 Jul 2018 23:48:10 +0000 (01:48 +0200)
commit4487cfa1fa5302a14e7001265b1fe46cf701933b
tree29a79c030c54ac48e6410f1b28b775218aa73ce2
parente3d99884428f3c8ed1f773520900b9466baa3ad4
crypto/virtio: fix memory leak

Put session private data back to mempool when clearing
a crypto session, which is expected to be done in the PMD.

Fixes: b7fa78c7d3b0 ("crypto/virtio: support session related ops")
Cc: stable@dpdk.org
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Reviewed-by: Jay Zhou <jianjay.zhou@huawei.com>
drivers/crypto/virtio/virtio_cryptodev.c