numam-dpdk/lib/librte_eal
Anatoly Burakov e27ffec169 mem: fix potential bad unmap on map failure
Previously, if mmap failed to map page address at requested
address, we were attempting to unmap the wrong address. Fix it
by unmapping our actual mapped address, and jump further to
avoid unmapping memory that is not allocated.

Coverity issue: 272602
Fixes: 582bed1e1d ("mem: support mapping hugepages at runtime")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2018-04-27 23:42:40 +02:00
..
bsdapp vfio: add multi container support 2018-04-27 15:54:55 +01:00
common mem: use strlcpy instead of snprintf 2018-04-27 23:42:40 +02:00
linuxapp mem: fix potential bad unmap on map failure 2018-04-27 23:42:40 +02:00
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build eal: provide API for querying valid socket ids 2018-04-05 00:27:13 +02:00
rte_eal_version.map vfio: add multi container support 2018-04-27 15:54:55 +01:00