ipc: check malloc sync reply result
This patch adds checking for mp reply result in handle_sync().
Fixes: 07dcbfe010
("malloc: support multiprocess memory hotplug")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
This commit is contained in:
parent
403f21feb8
commit
76b49dcbd2
@ -171,9 +171,7 @@ handle_sync(const struct rte_mp_msg *msg, const void *peer)
|
||||
resp->id = req->id;
|
||||
resp->result = ret == 0 ? REQ_RESULT_SUCCESS : REQ_RESULT_FAIL;
|
||||
|
||||
rte_mp_reply(&reply, peer);
|
||||
|
||||
return 0;
|
||||
return rte_mp_reply(&reply, peer);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user