]> git.droids-corp.org - dpdk.git/commit
net/ixgbe: reset security context pointer on close
authorYunjian Wang <wangyunjian@huawei.com>
Tue, 15 Feb 2022 13:01:51 +0000 (21:01 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 16 Feb 2022 14:16:53 +0000 (15:16 +0100)
commit848a37cead7bd604d51b5f04507fea3e59e9088e
tree197cf988f9a4211d1b78b5a4e8c817498cb21c41
parent24259c4f909e872dd497c503f75aa846dc698586
net/ixgbe: reset security context pointer on close

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

Fixes: 9a0752f498d2 ("net/ixgbe: enable inline IPsec")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c