Skip to content

Commit

Permalink
ipc: check malloc sync reply result
Browse files Browse the repository at this point in the history
[ upstream commit 76b49dc ]

This patch adds checking for mp reply result in handle_sync().

Fixes: 07dcbfe ("malloc: support multiprocess memory hotplug")

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
  • Loading branch information
fengchengwen authored and steevenlee committed Jun 8, 2021
1 parent 89bbedc commit 689d3a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/librte_eal/common/malloc_mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,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
Expand Down

0 comments on commit 689d3a9

Please sign in to comment.