git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
403f21f
)
ipc: check malloc sync reply result
author
Chengwen Feng
<fengchengwen@huawei.com>
Wed, 5 May 2021 04:10:06 +0000
(12:10 +0800)
committer
Thomas Monjalon
<thomas@monjalon.net>
Wed, 5 May 2021 21:16:07 +0000
(23:16 +0200)
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 <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
lib/eal/common/malloc_mp.c
patch
|
blob
|
history
diff --git
a/lib/eal/common/malloc_mp.c
b/lib/eal/common/malloc_mp.c
index
c7101b3
..
2e597a1
100644
(file)
--- 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