mem: fix storing old policy
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 8 Jan 2019 16:46:28 +0000 (16:46 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 14 Jan 2019 14:50:52 +0000 (15:50 +0100)
commitba07193e0343680ae5665efd45ecc41c0ec0059d
treebae6d41509fd229ea7c669a606b356ba99ff5253
parent199629022c5832f72431570d4f9d615f7a90f2ca
mem: fix storing old policy

The original code was supposed to overwrite the value pointed to
by the pointer, but the new one is instead overwriting the
pointer value itself, which has no effect outside that function.
Fix it by adding a pointer dereference.

Fixes: 582bed1e1d1d ("mem: support mapping hugepages at runtime")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_memalloc.c