mem: check mmap failure
authorSeth Howell <seth.howell@intel.com>
Mon, 28 Aug 2017 21:49:12 +0000 (14:49 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 9 Oct 2017 21:17:04 +0000 (23:17 +0200)
commit7485e06c2afb6baba38ce03228638aed8d903c62
treecb1a9073a327810f691c468e1dc22700b94c6cd3
parent41baec55a81467d7733217cd6f81a94e2916348c
mem: check mmap failure

If mmap fails, it will return the value MAP_FAILED. Checking for this
return code allows us to properly identify mmap failures and report
them as such to the calling function.

Signed-off-by: Seth Howell <seth.howell@intel.com>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
lib/librte_eal/linuxapp/eal/eal_memory.c