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:
b8a86c8
)
malloc: fix IPC message initialization
author
Anatoly Burakov
<anatoly.burakov@intel.com>
Fri, 29 Mar 2019 10:56:15 +0000
(10:56 +0000)
committer
Thomas Monjalon
<thomas@monjalon.net>
Fri, 29 Mar 2019 11:55:07 +0000
(12:55 +0100)
The memset size for an IPC message is set incorrectly. Fix it to
cover the entire IPC message.
Fixes:
07dcbfe0101f
("malloc: support multiprocess memory hotplug")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/malloc_mp.c
patch
|
blob
|
history
diff --git
a/lib/librte_eal/common/malloc_mp.c
b/lib/librte_eal/common/malloc_mp.c
index
f3a1335
..
b470565
100644
(file)
--- a/
lib/librte_eal/common/malloc_mp.c
+++ b/
lib/librte_eal/common/malloc_mp.c
@@
-501,7
+501,7
@@
handle_rollback_response(const struct rte_mp_msg *request,
/* lock the request */
pthread_mutex_lock(&mp_request_list.lock);
- memset(&msg, 0, sizeof(
0
));
+ memset(&msg, 0, sizeof(
msg
));
entry = find_request_by_id(mpreq->id);
if (entry == NULL) {