crypto: octeontx2 - Fix cptvf driver cleanup

[ Upstream commit c480a421a4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Bharat Bhushan 2023-12-11 15:59:11 +05:30 • committed by Greg Kroah-Hartman
commit 6c7bdb97d4
2 changed files with 7 additions and 2 deletions