From: Chengwen Feng Date: Wed, 5 May 2021 04:10:06 +0000 (+0800) Subject: ipc: check malloc sync reply result X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=76b49dcbd2cd2b7436fd196e01c04576c4feaa99;p=dpdk.git ipc: check malloc sync reply result This patch adds checking for mp reply result in handle_sync(). Fixes: 07dcbfe0101f ("malloc: support multiprocess memory hotplug") Cc: stable@dpdk.org Signed-off-by: Chengwen Feng Signed-off-by: Min Hu (Connor) --- diff --git a/lib/eal/common/malloc_mp.c b/lib/eal/common/malloc_mp.c index c7101b32d3..2e597a17a2 100644 --- a/lib/eal/common/malloc_mp.c +++ b/lib/eal/common/malloc_mp.c @@ -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