numam-dpdk/drivers/common/cpt
Kevin Traynor 01c65002b7 common/cpt: fix possible null dereference
Coverity complains that ctrl_flags is set to NULL at the start
of the function and it may not have been set before there is a
jump to fc_success and it is dereferenced.

Check for NULL before dereference.

312fc_success:
   CID 344983 (#1 of 1): Explicit null dereferenced
   (FORWARD_NULL)7. var_deref_op: Dereferencing null pointer ctrl_flags.
313        *ctrl_flags = rte_cpu_to_be_64(*ctrl_flags);

Coverity issue: 344983
Fixes: 6cc5409652 ("crypto/octeontx: add supported sessions")
Cc: stable@dpdk.org

Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
2019-11-08 16:40:13 +01:00
..
cpt_common.h crypto/octeontx: add asymmetric enqueue/dequeue ops 2019-10-23 16:57:06 +02:00
cpt_hw_types.h crypto/octeontx2: add enqueue/dequeue ops 2019-10-23 16:57:06 +02:00
cpt_mcode_defines.h crypto/octeontx2: add session related functions 2019-10-23 16:57:06 +02:00
cpt_pmd_logs.h crypto/octeontx: fix global log variable definition 2019-10-09 11:50:12 +02:00
cpt_pmd_ops_helper.c common/cpt: add helper functions for asymmetric crypto 2019-10-23 16:57:06 +02:00
cpt_pmd_ops_helper.h common/cpt: add helper functions for asymmetric crypto 2019-10-23 16:57:06 +02:00
cpt_ucode_asym.h crypto/octeontx: add asymmetric enqueue/dequeue ops 2019-10-23 16:57:06 +02:00
cpt_ucode.h common/cpt: fix possible null dereference 2019-11-08 16:40:13 +01:00
Makefile common/cpt: add PMD ops helper functions 2018-10-17 12:20:06 +02:00
meson.build common/cpt: add PMD ops helper functions 2018-10-17 12:20:06 +02:00
rte_common_cpt_version.map common/cpt: add helper functions for asymmetric crypto 2019-10-23 16:57:06 +02:00