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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Mar 2011 01:19:16 +0000 (18:19 -0700)
commitc816be7b5f24585baa9eba1f2413935f771d6ad6
tree14f45e3bfb4227e6e6f4d0bbc7cfdc2ec70e6f71
parent35043c428f1fcb92feb5792f5878a8852ee00771
sparc32: Fix might-be-used-uninitialized warning in do_sparc_fault().

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>
arch/sparc/mm/fault_32.c