eventdev: fix memory realloc check in port config
authorHarry van Haaren <harry.van.haaren@intel.com>
Mon, 17 Jul 2017 16:09:47 +0000 (17:09 +0100)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Thu, 20 Jul 2017 04:19:47 +0000 (07:19 +0300)
commitf9a96a50d8abc03f704d02defc8cb6238ff20a58
treed3d3974bd0bc099fc847480bccbb4860f265c83e
parent11952a072e5388fc3ec5179bc719c3a27b807b46
eventdev: fix memory realloc check in port config

This commit fixes the check to use the just reallocated
links_map variable, instead of stale dev->data->links_map.
Later the new variable is written to the dev->data->links_map,
so the stale-ness is only temporary.

Coverity issue: 143456
Fixes: 4f0804bbdfb9 ("eventdev: implement the northbound APIs")

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Reviewed-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
lib/librte_eventdev/rte_eventdev.c