crypto: iaa - Fix async_disable descriptor leak
authorTom Zanussi <tom.zanussi@linux.intel.com>
Sun, 25 Feb 2024 20:11:33 +0000 (14:11 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Mar 2024 10:35:40 +0000 (18:35 +0800)
commit262534ddc88dfea7474ed18adfecf856e4fbe054
treee312675670d4dbd1e530b97de6070e9ec7abb25e
parent7248e523a0d5a0eb06a710d79fc649e30616b890
crypto: iaa - Fix async_disable descriptor leak

The disable_async paths of iaa_compress/decompress() don't free idxd
descriptors in the async_disable case. Currently this only happens in
the testcases where req->dst is set to null. Add a test to free them
in those paths.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/iaa/iaa_crypto_main.c