net/netvsc: fix stale value after free
authorLong Li <longli@microsoft.com>
Tue, 11 Aug 2020 02:33:13 +0000 (19:33 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:06 +0000 (18:55 +0200)
commit0caf5621a4cdaadb40c7686d86bf58dd841057d3
treee016570fa31b50f00484bccaba48f375f947f86f
parent9c9d1dd5164583988120a7bb9002c4e062f95e97
net/netvsc: fix stale value after free

chim_index could potentially be used in other hn_txdesc when re-allocated.
Mark it as invalid to prevent stale value being used.

Fixes: cc0251813277 ("net/netvsc: split send buffers from Tx descriptors")
Cc: stable@dpdk.org
Signed-off-by: Long Li <longli@microsoft.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/netvsc/hn_rxtx.c