From: Ralf Baechle <ralf@linux-mips.org>
To: linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>,
David Howells <dhowells@redhat.com>,
Markos Chandras <Markos.Chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH v2] MIPS: ath79: Avoid using unitialized 'reg' variable
Date: Wed, 18 Sep 2013 15:51:56 +0200 [thread overview]
Message-ID: <20130918135156.GO22468@linux-mips.org> (raw)
In-Reply-To: <20130918134533.GN22468@linux-mips.org>
On Wed, Sep 18, 2013 at 03:45:33PM +0200, Ralf Baechle wrote:
> So here's a small test case to demonstrate the issue:
>
> /*
> * Definition of BUG taken from asm-generic/bug.h for the CONFIG_BUG=n case
> */
> #define BUG() do {} while(0)
>
> int foo(int arg)
> {
> int res;
>
> if (arg == 1)
> res = 23;
> else if (arg -= 2)
I fatfingered the testcase while editing the email. this line of course
is "else if (arg == 2)"
Ralf
prev parent reply other threads:[~2013-09-18 13:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1377082042-4219-1-git-send-email-markos.chandras@imgtec.com>
[not found] ` <20130903133839.GA10563@linux-mips.org>
[not found] ` <5225EC3B.1070701@imgtec.com>
2013-09-18 13:45 ` [PATCH v2] MIPS: ath79: Avoid using unitialized 'reg' variable Ralf Baechle
2013-09-18 13:51 ` Ralf Baechle [this message]
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=20130918135156.GO22468@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=Markos.Chandras@imgtec.com \
--cc=arnd@arndb.de \
--cc=dhowells@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@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