]> git.droids-corp.org - dpdk.git/commit
net/iavf: reset security context pointer on stop
authorYunjian Wang <wangyunjian@huawei.com>
Tue, 15 Feb 2022 13:02:27 +0000 (21:02 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 16 Feb 2022 14:16:53 +0000 (15:16 +0100)
commit23abab4f14d3e2425e74c296769d21b79d696096
tree29e270ccaec006ab83400c7d301a2eed25dbd28b
parent6d498b853fe3110013fbfb69f8bc05d8de509f88
net/iavf: reset security context pointer on stop

When iavf_security_ctx_destroy() is cleaning up, it does not correctly
set the security_ctx variable to NULL, which will lead to wild pointer.

Fixes: 6bc987ecb860 ("net/iavf: support IPsec inline crypto")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/iavf/iavf_ipsec_crypto.c