mem: fix return code of freeing segment on failure
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 3 May 2018 10:11:26 +0000 (11:11 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 14 May 2018 01:15:36 +0000 (03:15 +0200)
commit3d2d9861a64dc111d67be3948bbf192f2acffa46
tree4e3ec4207017eda34107adf47815ee5d1c27bcdd
parentb3b1b83bad2f6258be866a3687c0cf1bf6b0668c
mem: fix return code of freeing segment on failure

Return value should be zero for success, but if unlock and unlink
have succeeded, return value was 1, which triggered failure message
in calling code.

Fixes: a5ff05d60fc5 ("mem: support unmapping pages at runtime")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_eal/linuxapp/eal/eal_memalloc.c