aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/stm32/stm32-cryp.c
diff options
context:
space:
mode:
authorNatalia Petrova <n.petrova@fintech.ru>2022-09-28 13:25:05 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2022-10-21 19:15:35 +0800
commit094528b6a5a755b1195a01e10b13597d67d1a0e6 (patch)
treeb46b5920458234f45b44d0861c9bf5f6485004c3 /drivers/crypto/stm32/stm32-cryp.c
parentcrypto: ccp - Remove unused struct ccp_crypto_cpu (diff)
downloadlinux-094528b6a5a755b1195a01e10b13597d67d1a0e6.tar.gz
linux-094528b6a5a755b1195a01e10b13597d67d1a0e6.zip
crypto: nitrox - avoid double free on error path in nitrox_sriov_init()
If alloc_workqueue() fails in nitrox_mbox_init() it deallocates ndev->iov.vfdev and returns error code, but then nitrox_sriov_init() calls nitrox_sriov_cleanup() where ndev->iov.vfdev is deallocated again. Fix this by nulling ndev->iov.vfdev after the first deallocation. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 9e5de3e06e54 ("crypto: cavium/nitrox - Add mailbox...") Signed-off-by: Natalia Petrova <n.petrova@fintech.ru> Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/stm32/stm32-cryp.c')
0 files changed, 0 insertions, 0 deletions