mem: fix freeing of memzone used by ivshmem
authorMauricio Vasquez B <mauricio.vasquezbernal@studenti.polito.it>
Fri, 15 Apr 2016 08:29:49 +0000 (10:29 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 2 May 2016 10:37:48 +0000 (12:37 +0200)
commit31ca33ff9311a6e377fdad028e41b9d11a0c35e2
treef0c34135ea6fef3288de2f9f90009ae32e51c60b
parentd89a58dfe90be417f153e99b75f4ad5d1f89c2bd
mem: fix freeing of memzone used by ivshmem

Although previous implementation returned an error when trying to release
a memzone assigned to an ivshmem device, it stills freed it.

Fixes: cd10c42eb5bc ("mem: fix ivshmem freeing")

Signed-off-by: Mauricio Vasquez B <mauricio.vasquezbernal@studenti.polito.it>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
lib/librte_eal/common/eal_common_memzone.c