net/netvsc: fix memory free on device close
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 31 Mar 2020 17:14:00 +0000 (10:14 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:06 +0000 (13:57 +0200)
commit30408aab2d4e0fd9a5d2b4e2ef2a3a7b9e6c95bf
tree9f4d3cb27a1867be3eb396bad315446acfc3407b
parentcc0251813277fcf43b930b43ab4a423ed7536120
net/netvsc: fix memory free on device close

The netvsc PMD was putting the mac address in private data but the
core rte_ethdev doesn't allow that it. It has to be in rte_malloc'd
memory or a message will be printed on shutdown/close.
 EAL: Invalid memory

Fixes: f8279f47dd89 ("net/netvsc: fix crash in secondary process")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/netvsc/hn_ethdev.c
drivers/net/netvsc/hn_var.h