From: Cong Ding <dinggnu@gmail.com>
To: Ralf Baechle <ralf@linux-mips.org>,
Jim Quinlan <jim2101024@gmail.com>,
linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
Cc: Cong Ding <dinggnu@gmail.com>
Subject: [PATCH] mpis: cavium-octeon/executive/cvmx-l2c.c: fix uninitialized variable
Date: Mon, 14 Jan 2013 22:47:03 +0100 [thread overview]
Message-ID: <1358200025-15994-1-git-send-email-dinggnu@gmail.com> (raw)
the variable dummy is used without initialization.
Signed-off-by: Cong Ding <dinggnu@gmail.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
next reply other threads:[~2013-01-14 21:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-14 21:47 Cong Ding [this message]
2013-01-16 10:57 ` [PATCH] mpis: cavium-octeon/executive/cvmx-l2c.c: fix uninitialized variable Ralf Baechle
2013-01-16 17:56 ` David Daney
2013-01-16 18:09 ` Geert Uytterhoeven
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=1358200025-15994-1-git-send-email-dinggnu@gmail.com \
--to=dinggnu@gmail.com \
--cc=jim2101024@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.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