sparc32: Fix might-be-used-uninitialized warning in do_sparc_fault().
authorDavid S. Miller <davem@davemloft.net>
Wed, 9 Mar 2011 21:00:47 +0000 (13:00 -0800)
committerBrad Figg <brad.figg@canonical.com>
Wed, 27 Apr 2011 18:42:04 +0000 (11:42 -0700)
commitba7c29dd91c47f0c6bce0e8c8ec83c821dd6c16e
treec0b2a406c0fdeaf8ab7619792e5e3ec794e4598e
parentf012c9f4cc42a36f4e95c0280c3fc7a08f79fea0
sparc32: Fix might-be-used-uninitialized warning in do_sparc_fault().

BugLink: http://bugs.launchpad.net/bugs/769042

[ Upstream commit c816be7b5f24585baa9eba1f2413935f771d6ad6 ]

When we try to handle vmalloc faults, we can take a code
path which uses "code" before we actually set it.

Amusingly gcc-3.3 notices this yet gcc-4.x does not.

Reported-by: Bob Breuer <breuerr@mc.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
arch/sparc/mm/fault_32.c