android_kernel_xiaomi_sm8350/arch/powerpc/sysdev
Stephen Rothwell 06a901c562 [POWERPC] mpic: Fix use of uninitialized variable
Compiling ppc64_defconfig with gcc 4.3 gives thes warnings:

arch/powerpc/sysdev/mpic.c: In function 'mpic_irq_get_priority':
arch/powerpc/sysdev/mpic.c:1351: warning: 'is_ipi' may be used uninitialized in this function
arch/powerpc/sysdev/mpic.c: In function 'mpic_irq_set_priority':
arch/powerpc/sysdev/mpic.c:1328: warning: 'is_ipi' may be used uninitialized in this function

It turns out that in the cases where is_ipi is uninitialized, another
variable (mpic) will be NULL and it is dereferenced.  Protect against
this by returning if mpic is NULL in mpic_irq_set_priority, and removing
mpic_irq_get_priority completely as it has no in tree callers.

This has the nice side effect of making the warning go away.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-05-23 16:15:37 +10:00
..
bestcomm [POWERPC] Fix Oops with TQM5200 on TQM5200 2008-03-24 17:55:51 +11:00
qe_lib [POWERPC] QE: fix sparse warnings 2008-04-17 01:01:39 -05:00
axonram.c return pfn from direct_access, for XIP 2008-04-28 08:58:23 -07:00
cpm1.c [POWERPC] CPM: Always use new binding. 2008-04-17 01:01:40 -05:00
cpm2_pic.c
cpm2_pic.h
cpm2.c [POWERPC] CPM: Always use new binding. 2008-04-17 01:01:40 -05:00
cpm_common.c [POWERPC] CPM: Always use new binding. 2008-04-17 01:01:40 -05:00
dart_iommu.c
dart.h
dcr-low.S
dcr.c
fsl_lbc.c [POWERPC] fsl_lbc: implement few UPM routines 2008-04-17 01:01:38 -05:00
fsl_pci.c
fsl_pci.h
fsl_rio.c [RAPIDIO] fix current kernel-doc notation 2008-05-01 23:01:54 -05:00
fsl_soc.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2008-05-03 10:01:33 -07:00
fsl_soc.h powerpc: Add DIU platform code for MPC8610HPCD 2008-04-28 08:58:40 -07:00
grackle.c
i8259.c
indirect_pci.c
ipic.c [POWERPC] Fix crash in init_ipic_sysfs on efika 2008-03-24 17:55:00 +11:00
ipic.h
Kconfig
Makefile [POWERPC] fsl_lbc: implement few UPM routines 2008-04-17 01:01:38 -05:00
micropatch.c
mmio_nvram.c
mpc8xx_pic.c
mpc8xx_pic.h
mpic_msi.c
mpic_pasemi_msi.c
mpic_u3msi.c
mpic.c [POWERPC] mpic: Fix use of uninitialized variable 2008-05-23 16:15:37 +10:00
mpic.h
mv64x60_dev.c mv643xx_eth: get rid of static variables, allow multiple instances 2008-04-28 21:17:07 -07:00
mv64x60_pci.c [POWERPC] mv64x60: Fix FDT compatible names: mv64x60 => mv64360 2008-04-15 21:21:24 +10:00
mv64x60_pic.c [POWERPC] mv64x60: Fix FDT compatible names: mv64x60 => mv64360 2008-04-15 21:21:24 +10:00
mv64x60_udbg.c [POWERPC] Fix mv64x60 early console code to use cell-index property 2008-04-24 20:57:34 +10:00
mv64x60.h
of_rtc.c
pmi.c
ppc4xx_pci.c [POWERPC] 4xx: Add endpoint support to 4xx PCIe driver 2008-05-06 12:10:43 -05:00
ppc4xx_pci.h [POWERPC] 4xx: Add 460EX PCIe support to 4xx pci driver 2008-03-26 07:19:16 -05:00
ppc4xx_soc.c [POWERPC] 4xx: Create common ppc4xx_reset_system() in ppc4xx_soc.c 2008-04-02 20:44:56 -05:00
rtc_cmos_setup.c [POWERPC] Add MODULE_LICENSE to powerpc/sysdev/rtc_cmos_setup.c 2008-04-17 07:46:12 +10:00
tsi108_dev.c [POWERPC] Replace remaining __FUNCTION__ occurrences 2008-04-01 20:43:09 +11:00
tsi108_pci.c [POWERPC] Replace remaining __FUNCTION__ occurrences 2008-04-01 20:43:09 +11:00
uic.c
xilinx_intc.c [POWERPC] Xilinx: Fix compile warnings 2008-05-01 23:09:42 -05:00