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

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

Fixes: f437d97c3df1 ("net/txgbe: add IPsec context creation")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/txgbe/txgbe_ethdev.c