Re: [PATCH v2] MIPS: ath79: Avoid using unitialized 'reg' variable

2013-09-18 Thread Ralf Baechle
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; > >

Re: [PATCH v2] MIPS: ath79: Avoid using unitialized 'reg' variable

2013-09-18 Thread Ralf Baechle
On Tue, Sep 03, 2013 at 03:03:39PM +0100, Markos Chandras wrote: > >Was this triggered by CONFIG_BUG=n? > > > > Ralf > > > > Hi Ralf, > > Yes it was triggered by CONFIG_BUG=n So here's a small test case to demonstrate the issue: /* * Definition of BUG taken from asm-generic/bug.h for the

Re: [PATCH v2] MIPS: ath79: Avoid using unitialized 'reg' variable

2013-09-18 Thread Ralf Baechle
On Tue, Sep 03, 2013 at 03:03:39PM +0100, Markos Chandras wrote: Was this triggered by CONFIG_BUG=n? Ralf Hi Ralf, Yes it was triggered by CONFIG_BUG=n 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

Re: [PATCH v2] MIPS: ath79: Avoid using unitialized 'reg' variable

2013-09-18 Thread Ralf Baechle
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