summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>2018-10-24 12:05:17 +0200
committerThomas Monjalon <thomas@monjalon.net>2018-10-24 21:49:57 +0200
commitb4f62e586279bd5c49933f0e873adf047847e556 (patch)
treec2ea597c07b053082c9a3a0a874bb11f733e10b5 /mk
parent25495407cbda028f7f6d5cce38f78e609cf970e1 (diff)
downloaddpdk-b4f62e586279bd5c49933f0e873adf047847e556.zip
dpdk-b4f62e586279bd5c49933f0e873adf047847e556.tar.gz
dpdk-b4f62e586279bd5c49933f0e873adf047847e556.tar.xz
ipc: fix undefined behavior in no-shconf mode
In no-shconf mode the rte_mp_request_sync() wasn't initializing the `reply` parameter, which contained e.g. a number of sent requests. Callers of rte_mp_request_sync() might check that param afterwards and might read potentially unitialized memory. The no-shconf check that makes us return early (with rc = 0) was placed before the `reply` initialization. Fix this by making the `reply` initialization occur first. Fixes: 5848e3d2813c ("ipc: support --no-shconf mode") Cc: stable@dpdk.org Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Diffstat (limited to 'mk')
0 files changed, 0 insertions, 0 deletions