mem: fix comparison of old policy
authorAnatoly Burakov <anatoly.burakov@intel.com>
Mon, 16 Apr 2018 16:18:55 +0000 (17:18 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 27 Apr 2018 21:42:40 +0000 (23:42 +0200)
commit8ee25c7e81fcccfd14bd39f8ff87459ced9a3581
tree65d2b0a8d622bbeee719c7cff596247dfe532919
parent8dfb09dee47b78463af75d343b03e93f8324c6e4
mem: fix comparison of old policy

Previous code had an old rebase leftover from the time when
oldpolicy was an actual int, instead of a pointer. Fix it to
do comparison with dereferencing the pointer.

Coverity issue: 272589
Fixes: 582bed1e1d1d ("mem: support mapping hugepages at runtime")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/linuxapp/eal/eal_memalloc.c