linux-stable/drivers/crypto/marvell/octeontx2
Dan Carpenter 10371b6212 crypto: octeontx2 - prevent underflow in get_cores_bmap()
If we're going to cap "eng_grp->g->engs_num" upper bounds then we should
cap the lower bounds as well.

Fixes: 43ac0b824f ("crypto: octeontx2 - load microcode and create engine groups")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2021-12-24 14:18:27 +11: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 - parameters for custom engine groups 2021-12-11 16:49:17 +11:00
otx2_cpt_common.h crypto: octeontx2 - parameters for custom engine groups 2021-12-11 16:49:17 +11:00
otx2_cpt_devlink.c crypto: octeontx2 - parameters for custom engine groups 2021-12-11 16:49:17 +11:00
otx2_cpt_devlink.h crypto: octeontx2 - parameters for custom engine groups 2021-12-11 16:49:17 +11: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 - parameters for custom engine groups 2021-12-11 16:49:17 +11:00
otx2_cptpf_main.c crypto: octeontx2 - parameters for custom engine groups 2021-12-11 16:49:17 +11: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() 2021-12-24 14:18:27 +11:00
otx2_cptpf_ucode.h crypto: octeontx2 - add apis for custom engine groups 2021-12-11 16:49:17 +11: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 - use swap() to make code cleaner 2021-11-20 15:02:09 +11: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