net/ena: fix freeing memory using correct API
authorJan Medala <jan@semihalf.com>
Thu, 30 Jun 2016 15:04:58 +0000 (17:04 +0200)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 8 Jul 2016 13:23:01 +0000 (15:23 +0200)
commit0e72dbf2d338df917ab74ad58bf1fceb901865a3
tree033d48cec74b5e53495e0a46699505682b4a2da3
parent3d3edc265fc88853752720a44a7d7f1e36f1f7e7
net/ena: fix freeing memory using correct API

Memory zones should be freed using the proper memzone_free function not
rte_free which is for malloc calls.
After allocating memzone it's required to zeroize memory in it, so do so
before storing the handle for later freeing.

Fixes: 9ba7981ec992 ("ena: add communication layer for DPDK")

Signed-off-by: Alexander Matushevsky <matua@amazon.com>
Signed-off-by: Jakub Palider <jpa@semihalf.com>
Signed-off-by: Jan Medala <jan@semihalf.com>
drivers/net/ena/base/ena_plat_dpdk.h