This is a note to let you know that I've just added the patch titled
sparc32: Fix might-be-used-uninitialized warning in do_sparc_fault().
to the 2.6.38-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
sparc32-fix-might-be-used-uninitialized-warning-in-do_sparc_fault.patch
and it can be found in the queue-2.6.38 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From c90b2d78650ae1ec6db90f07533e0382fa63acad Mon Sep 17 00:00:00 2001
From: David S. Miller <[email protected]>
Date: Wed, 9 Mar 2011 13:00:47 -0800
Subject: sparc32: Fix might-be-used-uninitialized warning in do_sparc_fault().
From: David S. Miller <[email protected]>
[ 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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
arch/sparc/mm/fault_32.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/arch/sparc/mm/fault_32.c
+++ b/arch/sparc/mm/fault_32.c
@@ -240,11 +240,10 @@ asmlinkage void do_sparc_fault(struct pt
* only copy the information from the master page table,
* nothing more.
*/
+ code = SEGV_MAPERR;
if (!ARCH_SUN4C && address >= TASK_SIZE)
goto vmalloc_fault;
- code = SEGV_MAPERR;
-
/*
* If we're in an interrupt or have no user
* context, we must not take the fault..
Patches currently in stable-queue which might be from [email protected] are
queue-2.6.38/net-ipv6-fix-duplicate-proc-sys-net-ipv6-neigh-directory-entries.patch
queue-2.6.38/tcp-avoid-cwnd-moderation-in-undo.patch
queue-2.6.38/net_sched-fix-ip_tos2prio.patch
queue-2.6.38/sctp-pass-__gfp_nowarn-to-hash-table-allocation-attempts.patch
queue-2.6.38/gianfar-fall-back-to-software-tcp-udp-checksum-on-older-controllers.patch
queue-2.6.38/pppoe-drop-pppox_zombies-in-pppoe_flush_dev.patch
queue-2.6.38/sparc64-fix-build-errors-with-gcc-4.6.0.patch
queue-2.6.38/l2tp-fix-possible-oops-on-l2tp_eth-module-unload.patch
queue-2.6.38/bridge-fix-possibly-wrong-mld-queries-ethernet-source-address.patch
queue-2.6.38/xfrm-refcount-destination-entry-on-xfrm_lookup.patch
queue-2.6.38/net-cdc-phonet-handle-empty-phonet-header.patch
queue-2.6.38/bridge-reset-ipcb-when-entering-ip-stack-on-nf_forward.patch
queue-2.6.38/sparc32-fix-might-be-used-uninitialized-warning-in-do_sparc_fault.patch
queue-2.6.38/fib-add-rtnl-locking-in-ip_fib_net_exit.patch
queue-2.6.38/sparc32-pass-task_struct-to-schedule_tail-in-ret_from_fork.patch
queue-2.6.38/sparc-fix-.size-directive-for-do_int_load.patch
queue-2.6.38/vlan-should-take-into-account-needed_headroom.patch
_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable