]> git.droids-corp.org - dpdk.git/commit
crypto/ipsec_mb: fix queue cleanup null pointer dereference
authorCiara Power <ciara.power@intel.com>
Fri, 10 Dec 2021 14:09:51 +0000 (14:09 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 21 Jan 2022 09:17:35 +0000 (10:17 +0100)
commit581c39b1cb7d82d301a8ec6a16778bcf6ee11c7c
tree290ac8e0473948c92f25fd922db259757ea643fb
parentf51e40d1bf5efe7e659110613c63f1beb740d203
crypto/ipsec_mb: fix queue cleanup null pointer dereference

The qp was being used in the cleanup without checking if it was non NULL.
A check is now added to verify qp is non NULL before use.

Coverity issue: 374375
Fixes: c75542ae4200 ("crypto/ipsec_mb: introduce IPsec_mb framework")
Cc: stable@dpdk.org
Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
drivers/crypto/ipsec_mb/ipsec_mb_ops.c