DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] malloc: fix memset size
@ 2019-03-29 10:56 Anatoly Burakov
  2019-03-29 10:56 ` Anatoly Burakov
  2019-03-29 11:52 ` Thomas Monjalon
  0 siblings, 2 replies; 4+ messages in thread
From: Anatoly Burakov @ 2019-03-29 10:56 UTC (permalink / raw)
  To: dev; +Cc: stable

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_eal/common/malloc_mp.c b/lib/librte_eal/common/malloc_mp.c
index f3a13353b..b470565e0 100644
--- 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) {
-- 
2.17.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH] malloc: fix memset size
  2019-03-29 10:56 [dpdk-dev] [PATCH] malloc: fix memset size Anatoly Burakov
@ 2019-03-29 10:56 ` Anatoly Burakov
  2019-03-29 11:52 ` Thomas Monjalon
  1 sibling, 0 replies; 4+ messages in thread
From: Anatoly Burakov @ 2019-03-29 10:56 UTC (permalink / raw)
  To: dev; +Cc: stable

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_eal/common/malloc_mp.c b/lib/librte_eal/common/malloc_mp.c
index f3a13353b..b470565e0 100644
--- 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) {
-- 
2.17.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] malloc: fix memset size
  2019-03-29 10:56 [dpdk-dev] [PATCH] malloc: fix memset size Anatoly Burakov
  2019-03-29 10:56 ` Anatoly Burakov
@ 2019-03-29 11:52 ` Thomas Monjalon
  2019-03-29 11:52   ` Thomas Monjalon
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Monjalon @ 2019-03-29 11:52 UTC (permalink / raw)
  To: Anatoly Burakov; +Cc: dev, stable

29/03/2019 11:56, Anatoly Burakov:
> 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>

Applied, thanks

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] malloc: fix memset size
  2019-03-29 11:52 ` Thomas Monjalon
@ 2019-03-29 11:52   ` Thomas Monjalon
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2019-03-29 11:52 UTC (permalink / raw)
  To: Anatoly Burakov; +Cc: dev, stable

29/03/2019 11:56, Anatoly Burakov:
> 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>

Applied, thanks



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-03-29 11:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-29 10:56 [dpdk-dev] [PATCH] malloc: fix memset size Anatoly Burakov
2019-03-29 10:56 ` Anatoly Burakov
2019-03-29 11:52 ` Thomas Monjalon
2019-03-29 11:52   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).