> Subject: [PATCH] crypto/cnxk: fix AE table get on unprobed device
> 
> rte_pmd_cnxk_ae_ec_grp_table_get() and rte_pmd_cnxk_ae_fpm_table_get()
> checked rte_cryptodev_pmd_get_dev() against NULL, but that helper
> always returns a valid pointer into the static device array, even for
> an unprobed dev_id. This led to a NULL dereference on dev->data when
> called with a dev_id that has no probed device.
> 
> Use rte_cryptodev_is_valid_dev() to validate dev_id before
> dereferencing dev->data, and reject a NULL nb_max_entries pointer in
> rte_pmd_cnxk_ae_ec_grp_table_get().
> 
> Fixes: 53ff25b1086b ("crypto/cnxk: add API to get EC group table address")
> Fixes: a1b4cc32591d ("crypto/cnxk: add API to get FPM table address")
> 
> Signed-off-by: Sucharitha Sarananaga <[email protected]>
Cc: [email protected]
Applied to dpdk-next-crypto

Reply via email to