diff mbox series

[v1,1/6] Revert "UBUNTU: SAUCE: bluefield-edac: Fix potential integer overflow"

Message ID f4577d8974709d6ab42edfc22eaa036ee51f647b.1729795186.git.davthompson@nvidia.com
State New
Headers show
Series bluefield_edac: replace SAUCE patches with upstream content | expand

Commit Message

David Thompson Oct. 24, 2024, 6:57 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/2085561

This reverts commit 05bf8afe03a0a04ab546e5d056695943732a0ea9.

Signed-off-by: David Thompson <davthompson@nvidia.com>
---
 drivers/edac/bluefield_edac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/edac/bluefield_edac.c b/drivers/edac/bluefield_edac.c
index 82415e6fe1d8..c21eb015f2d1 100644
--- a/drivers/edac/bluefield_edac.c
+++ b/drivers/edac/bluefield_edac.c
@@ -291,7 +291,7 @@  static void bluefield_edac_check(struct mem_ctl_info *mci)
 static void bluefield_edac_init_dimms(struct mem_ctl_info *mci)
 {
 	struct bluefield_edac_priv *priv = mci->pvt_info;
-	u64 mem_ctrl_idx = mci->mc_idx;
+	int mem_ctrl_idx = mci->mc_idx;
 	struct dimm_info *dimm;
 	u64 smc_info, smc_arg;
 	int is_empty = 1, i;