mem: fix mmap error check on huge page attach
authorMichael McConville <mmcco@mykolab.com>
Fri, 1 Dec 2017 06:51:13 +0000 (23:51 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 9 Jan 2018 15:59:50 +0000 (16:59 +0100)
commitb45056be0429d6df2313e5e49aa8f78e5d840a97
tree9c48d15bdc24c9578b18c948224545d40b262725
parent4a386cfeadaa747d88fa19c3cbe1bd93bbcde4f5
mem: fix mmap error check on huge page attach

mmap(2) returns MAP_FAILED, not NULL, on failure.

Signed-off-by: Michael McConville <mmcco@mykolab.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/bsdapp/eal/eal_memory.c