[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1358200025-15994-1-git-send-email-dinggnu@gmail.com>
Date: Mon, 14 Jan 2013 22:47:03 +0100
From: Cong Ding <dinggnu@...il.com>
To: Ralf Baechle <ralf@...ux-mips.org>,
Jim Quinlan <jim2101024@...il.com>, linux-mips@...ux-mips.org,
linux-kernel@...r.kernel.org
Cc: Cong Ding <dinggnu@...il.com>
Subject: [PATCH] mpis: cavium-octeon/executive/cvmx-l2c.c: fix uninitialized variable
the variable dummy is used without initialization.
Signed-off-by: Cong Ding <dinggnu@...il.com>
---
arch/mips/cavium-octeon/executive/cvmx-l2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/cavium-octeon/executive/cvmx-l2c.c b/arch/mips/cavium-octeon/executive/cvmx-l2c.c
index 9f883bf..d7e07af 100644
--- a/arch/mips/cavium-octeon/executive/cvmx-l2c.c
+++ b/arch/mips/cavium-octeon/executive/cvmx-l2c.c
@@ -286,7 +286,7 @@ uint64_t cvmx_l2c_read_perf(uint32_t counter)
static void fault_in(uint64_t addr, int len)
{
volatile char *ptr;
- volatile char dummy;
+ volatile char dummy = 0;
/*
* Adjust addr and length so we get all cache lines even for
* small ranges spanning two cache lines.
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists