af_packet: fix possible memory leak
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Fri, 19 Dec 2014 15:01:36 +0000 (16:01 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 19 Dec 2014 22:30:25 +0000 (23:30 +0100)
commitdd6590fe2fd7b08be2e31dd8549ed43f7e5435f2
treefe9181d9582f87752e67e4e750f776c6f85c4f92
parent74ab022182e82faeb89fc99d8ce3e1c4be7f776e
af_packet: fix possible memory leak

In rte_pmd_init_internals, we are mapping memory but not released
if error occurs it could produce memory leak.
Add unmmap function to release memory.

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Michal Jastrzebski <michalx.k.jastrzebski@intel.com>
Acked-by: John W. Linville <linville@tuxdriver.com>
lib/librte_pmd_af_packet/rte_eth_af_packet.c