linux/arch/powerpc
Julia Lawall 870029a682 powerpc/85xx: Add local_irq_restore in error handling code
There is a call to local_irq_restore in the normal exit case, so it would
seem that there should be one on an error return as well.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
expression l;
expression E,E1,E2;
@@

local_irq_save(l);
... when != local_irq_restore(l)
    when != spin_unlock_irqrestore(E,l)
    when any
    when strict
(
if (...) { ... when != local_irq_restore(l)
               when != spin_unlock_irqrestore(E1,l)
+   local_irq_restore(l);
    return ...;
}
|
if (...)
+   {local_irq_restore(l);
    return ...;
+   }
|
spin_unlock_irqrestore(E2,l);
|
local_irq_restore(l);
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2008-12-30 11:35:30 -06:00
..
boot powerpc/86xx: Update 8641hpcn dts file to match latest u-boot 2008-12-30 11:30:40 -06:00
configs powerpc/85xx: Add SMP support to MPC8572 DS 2008-12-30 11:30:42 -06:00
include/asm powerpc/qe: Fix few build errors with CONFIG_QUICC_ENGINE=n 2008-12-30 11:14:06 -06:00
kernel powerpc/44x: Support 16K/64K base page sizes on 44x 2008-12-29 09:53:25 +11:00
kvm powerpc: Fix KVM build on ppc440 2008-12-23 14:58:30 +11:00
lib powerpc: Rename struct vm_region to avoid conflict with NOMMU 2008-12-21 14:21:14 +11:00
math-emu powerpc: Add SPE/EFP math emulation for E500v1/v2 processors. 2008-12-03 08:19:16 -06:00
mm powerpc/44x: Support 16K/64K base page sizes on 44x 2008-12-29 09:53:25 +11:00
oprofile powerpc/cell/OProfile: Fix on-stack array size in activate spu profiling function 2008-10-31 16:13:51 +11:00
platforms powerpc/85xx: Add local_irq_restore in error handling code 2008-12-30 11:35:30 -06:00
sysdev powerpc/fsl_pci: Fix sparse warnings 2008-12-30 11:14:02 -06:00
xmon powerpc: Prepare xmon_save_regs for use with kdump 2008-12-23 15:13:28 +11:00
Kconfig powerpc/44x: Support 16K/64K base page sizes on 44x 2008-12-29 09:53:25 +11:00
Kconfig.debug powerpc: Allow the max stack trace depth to be configured 2008-12-03 20:46:35 +11:00
Makefile powerpc: Remove unncessary SPE related compiler flag 2008-12-03 08:19:10 -06:00