From: Wenwu Ma <wenwux.ma@intel.com>
To: ajit.khaparde@broadcom.com, somnath.kotur@broadcom.com,
amitprakashs@marvell.com, abhinandan.gujjar@intel.com,
dev@dpdk.org, stable@dpdk.org
Cc: tingtingx.liao@intel.com, Wenwu Ma <wenwux.ma@intel.com>
Subject: [PATCH 1/3] net/bnxt: fix uninitialized variable
Date: Mon, 25 Nov 2024 14:47:53 +0800 [thread overview]
Message-ID: <20241125064755.3943-2-wenwux.ma@intel.com> (raw)
In-Reply-To: <20241125064755.3943-1-wenwux.ma@intel.com>
This patch fixes the variable 'total_pages' may be used uninitialized.
Fixes: 80317ff6adfd ("net/bnxt/tf_core: support Thor2")
Cc: stable@dpdk.org
Signed-off-by: Wenwu Ma <wenwux.ma@intel.com>
---
drivers/net/bnxt/tf_core/v3/tfc_tbl_scope.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/bnxt/tf_core/v3/tfc_tbl_scope.c b/drivers/net/bnxt/tf_core/v3/tfc_tbl_scope.c
index 1770069295..3aed78dbeb 100644
--- a/drivers/net/bnxt/tf_core/v3/tfc_tbl_scope.c
+++ b/drivers/net/bnxt/tf_core/v3/tfc_tbl_scope.c
@@ -439,7 +439,7 @@ static int alloc_link_pbl(struct tfc_ts_mem_cfg *mem_cfg, uint32_t page_size,
char mz_name[RTE_MEMZONE_NAMESIZE];
int mz_size;
uint64_t total_size;
- uint32_t total_pages;
+ uint32_t total_pages = 0;
/* tf_em_size_page_tbl_lvl */
rc = num_pages_get(mem_cfg, page_size);
--
2.34.1
next prev parent reply other threads:[~2024-11-25 7:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-25 6:47 [PATCH 0/3] " Wenwu Ma
2024-11-25 6:47 ` Wenwu Ma [this message]
2024-11-25 6:47 ` [PATCH 2/3] eventdev: " Wenwu Ma
2024-11-25 6:47 ` [PATCH 3/3] " Wenwu Ma
2024-11-27 2:46 ` Liao, TingtingX
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=20241125064755.3943-2-wenwux.ma@intel.com \
--to=wenwux.ma@intel.com \
--cc=abhinandan.gujjar@intel.com \
--cc=ajit.khaparde@broadcom.com \
--cc=amitprakashs@marvell.com \
--cc=dev@dpdk.org \
--cc=somnath.kotur@broadcom.com \
--cc=stable@dpdk.org \
--cc=tingtingx.liao@intel.com \
/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).