crypto: octeontx2 - Fix cptvf driver cleanup
authorBharat Bhushan <bbhushan2@marvell.com>
Mon, 11 Dec 2023 10:29:11 +0000 (15:59 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Dec 2023 09:52:54 +0000 (17:52 +0800)
commitc480a421a4faf693c38e60b0fe6e554c9a3fee02
treee4ffc73f98387e7d169f3359852aa36464de77cf
parent9d7edaae7c1fbbc4d34124d41ac846a8b9ba5359
crypto: octeontx2 - Fix cptvf driver cleanup

This patch fixes following cleanup issues:
 - Missing instruction queue free on cleanup. This
   will lead to memory leak.
 - lfs->lfs_num is set to zero before cleanup, which
   will lead to improper cleanup.

Signed-off-by: Bharat Bhushan <bbhushan2@marvell.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/octeontx2/otx2_cptlf.c
drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c