From: Abdullah Sevincer <abdullah.sevincer@intel.com>
To: dev@dpdk.org
Cc: jerinj@marvell.com, pbhagavatula@marvell.com,
Abdullah Sevincer <abdullah.sevincer@intel.com>,
stable@dpdk.org
Subject: [PATCH v1] eventdev: fix invalid memory free operation
Date: Tue, 28 Feb 2023 15:31:23 -0600 [thread overview]
Message-ID: <20230228213123.371897-1-abdullah.sevincer@intel.com> (raw)
This commit fixes invalid memory free operation
caused by extending xstats ID width from 32 to 64 bits.
Telemetry application crashed when freeing memory,
hence, the telemetry app could not display xstats.
Fixes: 1bdfe4d76e98 ("eventdev: increase xstats ID width to 64 bits")
Cc: stable@dpdk.org
Signed-off-by: Abdullah Sevincer <abdullah.sevincer@intel.com>
---
lib/eventdev/rte_eventdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c
index 71a29f3506..6ab4524332 100644
--- a/lib/eventdev/rte_eventdev.c
+++ b/lib/eventdev/rte_eventdev.c
@@ -1725,7 +1725,7 @@ eventdev_build_telemetry_data(int dev_id,
if (xstat_names == NULL)
return -1;
- ids = malloc((sizeof(unsigned int)) * num_xstats);
+ ids = malloc((sizeof(uint64_t)) * num_xstats);
if (ids == NULL) {
free(xstat_names);
return -1;
--
2.25.1
next reply other threads:[~2023-02-28 21:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-28 21:31 Abdullah Sevincer [this message]
2023-03-03 15:55 ` Jerin Jacob
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230228213123.371897-1-abdullah.sevincer@intel.com \
--to=abdullah.sevincer@intel.com \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=pbhagavatula@marvell.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).