android_kernel_xiaomi_sm8350/arch/powerpc/platforms
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
..
8xx powerpc: Add support for the MPC852 based mgsuvd board from keymile. 2008-09-16 10:01:30 -05:00
40x powerpc: Introduce ppc_pci_flags accessors 2008-12-16 15:53:16 +11:00
44x powerpc: Introduce ppc_pci_flags accessors 2008-12-16 15:53:16 +11:00
52xx powerpc/mpc5200: Make internal 5200 PIC the default interrupt controller 2008-12-21 02:54:27 -07:00
82xx powerpc: Introduce ppc_pci_flags accessors 2008-12-16 15:53:16 +11:00
83xx powerpc/83xx: Fix few build errors with CONFIG_QUICC_ENGINE=n 2008-12-30 11:14:05 -06:00
85xx powerpc/85xx: Add local_irq_restore in error handling code 2008-12-30 11:35:30 -06:00
86xx powerpc/86xx: Basic GPIO support for GE Fanuc SBC610 2008-12-03 10:47:37 -06:00
512x powerpc/5121: Add PCI support. 2008-10-13 11:09:58 -05:00
cell powerpc: Remove default kexec/crash_kernel ops assignments 2008-12-23 15:13:28 +11:00
chrp powerpc: Introduce ppc_pci_flags accessors 2008-12-16 15:53:16 +11:00
embedded6xx powerpc: Remove default kexec/crash_kernel ops assignments 2008-12-23 15:13:28 +11:00
iseries powerpc/iseries: viodasd needs to depend on CONFIG_BLOCK 2008-12-21 14:21:15 +11:00
maple powerpc: Remove default kexec/crash_kernel ops assignments 2008-12-23 15:13:28 +11:00
pasemi phylib: two dynamic mii_bus allocation fallout fixes 2008-10-09 09:45:04 -07:00
powermac powerpc: Remove default kexec/crash_kernel ops assignments 2008-12-23 15:13:28 +11:00
prep
ps3 powerpc: Remove default kexec/crash_kernel ops assignments 2008-12-23 15:13:28 +11:00
pseries powerpc/pseries: Fix cpu hotplug 2008-12-23 15:13:27 +11:00
fsl_uli1575.c powerpc: Fix boot hang regression on MPC8544DS 2008-10-02 00:58:49 -05:00
Kconfig powerpc: Implement GPIO driver for simple memory-mapped banks 2008-12-30 11:13:45 -06:00
Kconfig.cputype powerpc/85xx: Enable SMP support 2008-12-30 11:30:41 -06:00
Makefile powerpc: Remove use of CONFIG_PPC_MERGE 2008-08-04 13:18:17 +10:00