linux-stable/drivers/crypto/marvell/octeontx2
Shijith Thotton e6374086f2 crypto: octeontx2 - remove CONFIG_DM_CRYPT check
[ Upstream commit 2d841af23a ]

No issues were found while using the driver with dm-crypt enabled. So
CONFIG_DM_CRYPT check in the driver can be removed.

This also fixes the NULL pointer dereference in driver release if
CONFIG_DM_CRYPT is enabled.

...
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
...
Call trace:
 crypto_unregister_alg+0x68/0xfc
 crypto_unregister_skciphers+0x44/0x60
 otx2_cpt_crypto_exit+0x100/0x1a0
 otx2_cptvf_remove+0xf8/0x200
 pci_device_remove+0x3c/0xd4
 __device_release_driver+0x188/0x234
 device_release_driver+0x2c/0x4c
...

Fixes: 6f03f0e8b6 ("crypto: octeontx2 - register with linux crypto framework")
Signed-off-by: Shijith Thotton <sthotton@marvell.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:05 +02:00
..
cn10k_cpt.c crypto: octeontx2 - add support for CPT operations on CN10K 2021-06-03 20:24:05 +08:00
cn10k_cpt.h crypto: octeontx2 - add support for CPT operations on CN10K 2021-06-03 20:24:05 +08:00
Makefile crypto: octeontx2 - add support to map LMTST region for CN10K 2021-06-03 20:24:05 +08:00
otx2_cpt_common.h crypto: octeontx2 - add support to map LMTST region for CN10K 2021-06-03 20:24:05 +08:00
otx2_cpt_hw_types.h crypto: octeontx2 - add support for CPT operations on CN10K 2021-06-03 20:24:05 +08:00
otx2_cpt_mbox_common.c crypto: octeontx2 - add support for OcteonTX2 98xx CPT block. 2021-04-22 17:31:31 +10:00
otx2_cpt_reqmgr.h crypto: octeontx2 - register with linux crypto framework 2021-01-22 14:58:03 +11:00
otx2_cptlf.c crypto: octeontx2 - add support for CPT operations on CN10K 2021-06-03 20:24:05 +08:00
otx2_cptlf.h crypto: octeontx2 - add support for CPT operations on CN10K 2021-06-03 20:24:05 +08:00
otx2_cptpf.h crypto: octeontx2 - Add mailbox support for CN10K 2021-06-03 20:24:05 +08:00
otx2_cptpf_main.c crypto: octeontx2 - uninitialized variable in kvf_limits_store() 2022-01-27 11:05:30 +01:00
otx2_cptpf_mbox.c crypto: octeontx2 - add support to process the crypto request 2021-01-22 14:58:03 +11:00
otx2_cptpf_ucode.c crypto: octeontx2 - prevent underflow in get_cores_bmap() 2022-01-27 11:03:47 +01:00
otx2_cptpf_ucode.h crypto: octeontx2 - add support for CPT operations on CN10K 2021-06-03 20:24:05 +08:00
otx2_cptvf.h crypto: octeontx2 - Add mailbox support for CN10K 2021-06-03 20:24:05 +08:00
otx2_cptvf_algs.c crypto: octeontx2 - remove CONFIG_DM_CRYPT check 2022-04-08 14:23:05 +02:00
otx2_cptvf_algs.h crypto: octeontx2 - register with linux crypto framework 2021-01-22 14:58:03 +11:00
otx2_cptvf_main.c crypto: octeontx2 - add support to map LMTST region for CN10K 2021-06-03 20:24:05 +08:00
otx2_cptvf_mbox.c crypto: octeontx2 - Add mailbox support for CN10K 2021-06-03 20:24:05 +08:00
otx2_cptvf_reqmgr.c crypto: octeontx2 - add support for CPT operations on CN10K 2021-06-03 20:24:05 +08:00