acrn-kernel/arch/arm/mach-imx
Emil Goode d1d70e5dc2 ARM: imx: fix error handling in ipu device registration
If we fail to allocate struct platform_device pdev we
dereference it after the goto label err.

This bug was found using coccinelle.

Fixes: afa77ef (ARM: mx3: dynamically allocate "ipu-core" devices)
Signed-off-by: Emil Goode <emilgoode@gmail.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
2014-05-21 22:16:56 -07:00
..
devices ARM: imx: fix error handling in ipu device registration 2014-05-21 22:16:56 -07:00
3ds_debugboard.c
3ds_debugboard.h
Kconfig ARM: imx6: introduce CONFIG_SOC_IMX6 for i.MX6 common stuff 2014-03-05 10:47:51 +08:00
Makefile ARM: imx6: build suspend-imx6.o with CONFIG_SOC_IMX6 2014-03-05 10:48:25 +08:00
anatop.c ARM: imx: use imx_init_revision_from_anatop() on imx6sl 2013-10-21 09:13:13 +08:00
avic.c ARM: imx: drop support for irq priorisation 2013-12-09 13:18:25 +08:00
board-mx31lilly.h
board-mx31lite.h
board-mx31moboard.h
board-pcm038.h
clk-busy.c
clk-fixup-div.c ARM: imx: add common clock support for fixup div 2013-08-16 13:11:24 +08:00
clk-fixup-mux.c ARM: imx: initialize clk_init_data.flags for clk-fixup-mux 2013-09-17 10:04:23 +08:00
clk-gate2.c ARM: imx: improve status check of clock gate 2013-12-31 09:36:46 +08:00
clk-imx1.c
clk-imx6q.c ARM: i.MX6: ipu_di_sel clocks can set parent rates 2014-04-15 11:13:22 +08:00
clk-imx6sl.c ARM: imx: avoid calling clk APIs in idle thread which may cause schedule 2014-03-05 10:35:21 +08:00
clk-imx21.c ARM i.MX: remove PWM platform support 2014-03-05 10:35:09 +08:00
clk-imx25.c ARM i.MX: remove PWM platform support 2014-03-05 10:35:09 +08:00
clk-imx27.c ARM i.MX: remove PWM platform support 2014-03-05 10:35:09 +08:00
clk-imx31.c
clk-imx35.c ARM i.MX35: Add devicetree support. 2013-12-31 09:36:40 +08:00
clk-imx51-imx53.c ARM i.MX: remove PWM platform support 2014-03-05 10:35:09 +08:00
clk-pfd.c ARM: imx: add necessary interface for pfd 2013-12-31 09:36:45 +08:00
clk-pllv1.c ARM: imx: pllv1: Fix PLL calculation for i.MX27 2013-12-31 09:36:29 +08:00
clk-pllv2.c
clk-pllv3.c ARM: imx: set up pllv3 POWER and BYPASS sequentially 2013-11-11 22:58:45 +08:00
clk-vf610.c ARM: imx: clk-vf610: Suppress duplicate const sparse warning 2014-03-05 10:35:08 +08:00
clk.c ARM: imx6: change some clocks to fixup clocks 2013-08-16 13:11:25 +08:00
clk.h The common clk framework changes for 3.12 are dominated by clock driver 2013-09-09 15:49:04 -07:00
common.h ARM: imx6: move v7_cpu_resume() into suspend-imx6.S 2014-03-05 10:40:49 +08:00
cpu-imx5.c
cpu-imx25.c
cpu-imx27.c
cpu-imx31.c
cpu-imx35.c
cpu.c ARM: imx: Include linux/err.h 2013-10-21 09:15:12 +08:00
cpuidle-imx5.c
cpuidle-imx6q.c ARM: imx: Use INT_MEM_CLK_LPM as the bit name 2014-03-05 10:34:59 +08:00
cpuidle-imx6sl.c ARM: imx: add cpuidle support for i.mx6sl 2014-03-05 10:35:01 +08:00
cpuidle.h ARM: imx: add cpuidle support for i.mx6sl 2014-03-05 10:35:01 +08:00
crm-regs-imx5.h
crmregs-imx3.h
devices-imx1.h
devices-imx21.h
devices-imx25.h ARM i.MX: remove PWM platform support 2014-03-05 10:35:09 +08:00
devices-imx27.h
devices-imx31.h
devices-imx35.h ARM: imx: prepare for removal of flexcan_platform_data 2013-06-27 15:15:08 +02:00
devices-imx51.h ARM i.MX: remove PWM platform support 2014-03-05 10:35:09 +08:00
ehci-imx5.c
ehci-imx25.c
ehci-imx27.c
ehci-imx31.c
ehci-imx35.c
epit.c ARM: imx: remove IRQF_DISABLED 2013-10-21 09:11:05 +08:00
eukrea-baseboards.h
eukrea_mbimx27-baseboard.c
eukrea_mbimxsd25-baseboard.c ARM: imx: prepare for removal of flexcan_platform_data 2013-06-27 15:15:08 +02:00
eukrea_mbimxsd35-baseboard.c ARM: imx: prepare for removal of flexcan_platform_data 2013-06-27 15:15:08 +02:00
eukrea_mbimxsd51-baseboard.c
gpc.c ARM: imx: ensure dsm_request signal is not asserted when setting LPM 2013-10-21 09:39:26 +08:00
hardware.h ARM: imx: add suspend in ocram support for i.mx6q 2014-03-05 10:35:10 +08:00
headsmp.S ARM: imx6: drop .text.head section annotation from headsmp.S 2014-03-05 10:48:26 +08:00
hotplug.c ARM: imx: do not return from imx_cpu_die() call 2013-10-21 09:37:31 +08:00
iim.h
imx25-dt.c ARM: imx: create mxc_arch_reset_init_dt() for DT boot 2013-06-17 15:45:10 +08:00
imx27-dt.c ARM: imx: create mxc_arch_reset_init_dt() for DT boot 2013-06-17 15:45:10 +08:00
imx31-dt.c ARM: imx: use __initconst for const init definition 2013-12-31 09:36:33 +08:00
imx35-dt.c ARM i.MX35: Add devicetree support. 2013-12-31 09:36:40 +08:00
imx51-dt.c ARM: imx: use __initconst for const init definition 2013-12-31 09:36:33 +08:00
iomux-imx31.c
iomux-mx1.h
iomux-mx2x.h
iomux-mx3.h
iomux-mx21.h
iomux-mx25.h
iomux-mx27.h
iomux-mx35.h
iomux-mx51.h
iomux-v1.c
iomux-v1.h
iomux-v3.c
iomux-v3.h
irq-common.c ARM: imx: irq-common: Include header to avoid sparse warning 2013-06-17 15:45:14 +08:00
irq-common.h ARM: imx: drop support for irq priorisation 2013-12-09 13:18:25 +08:00
mach-apf9328.c
mach-armadillo5x0.c ARM: imx: remove IRQF_DISABLED 2013-10-21 09:11:05 +08:00
mach-bug.c
mach-cpuimx27.c
mach-cpuimx35.c Input: tsc2007 - add device tree support. 2013-11-25 18:27:53 -08:00
mach-cpuimx51sd.c Input: tsc2007 - add device tree support. 2013-11-25 18:27:53 -08:00
mach-eukrea_cpuimx25.c
mach-imx6q.c ARM i.MX6q: Mark VPU and IPU AXI transfers as cacheable, increase IPU priority 2014-03-05 10:40:48 +08:00
mach-imx6sl.c ARM: imx: add suspend in ocram support for i.mx6q 2014-03-05 10:35:10 +08:00
mach-imx27_visstrim_m10.c gpio: (gpio-pca953x) move header to linux/platform_data/ 2013-08-29 12:33:52 -07:00
mach-imx27ipcam.c
mach-imx27lite.c
mach-imx50.c ARM: imx: use __initconst for const init definition 2013-12-31 09:36:33 +08:00
mach-imx53.c ARM: imx: use __initconst for const init definition 2013-12-31 09:36:33 +08:00
mach-kzm_arm11_01.c
mach-mx1ads.c
mach-mx21ads.c
mach-mx25_3ds.c ARM: imx: prepare for removal of flexcan_platform_data 2013-06-27 15:15:08 +02:00
mach-mx27_3ds.c
mach-mx27ads.c video: imxfb: Use regulator API with LCD class for powering 2014-02-11 15:10:17 +02:00
mach-mx31_3ds.c ARM: imx: remove IRQF_DISABLED 2013-10-21 09:11:05 +08:00
mach-mx31ads.c
mach-mx31lilly.c
mach-mx31lite.c
mach-mx31moboard.c serial: imx: Remove init() and exit() platform callbacks 2014-02-28 16:36:45 -08:00
mach-mx35_3ds.c
mach-mx51_babbage.c
mach-mxt_td60.c gpio: (gpio-pca953x) move header to linux/platform_data/ 2013-08-29 12:33:52 -07:00
mach-pca100.c treewide: Fix typos in printk 2013-12-19 15:10:49 +01:00
mach-pcm037.c Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2013-11-18 15:50:07 -08:00
mach-pcm037_eet.c
mach-pcm038.c misc: (at24) move header to linux/platform_data/ 2013-09-30 06:02:34 +02:00
mach-pcm043.c misc: (at24) move header to linux/platform_data/ 2013-09-30 06:02:34 +02:00
mach-qong.c
mach-scb9328.c
mach-vf610.c ARM: imx: use __initconst for const init definition 2013-12-31 09:36:33 +08:00
mach-vpr200.c misc: (at24) move header to linux/platform_data/ 2013-09-30 06:02:34 +02:00
mm-imx1.c ARM: imx: move clk_prepare() out from mxc_restart() 2013-06-17 15:45:10 +08:00
mm-imx3.c Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm 2013-07-03 09:46:29 -07:00
mm-imx5.c ARM: imx: remove mxc_iomux_v3_init() call from imx53_init_early() 2013-12-09 13:18:24 +08:00
mm-imx21.c ARM: imx: move clk_prepare() out from mxc_restart() 2013-06-17 15:45:10 +08:00
mm-imx25.c ARM: i.MX: remove sdma script address arrays from platform data 2013-08-26 20:47:16 +05:30
mm-imx27.c ARM: imx: move clk_prepare() out from mxc_restart() 2013-06-17 15:45:10 +08:00
mmdc.c
mx1-camera-fiq-ksym.c
mx1-camera-fiq.S
mx1.h
mx2x.h
mx3x.h
mx21.h
mx25.h
mx27.h ARM: i.MX27: Typo fix 2013-07-15 08:28:07 +08:00
mx31.h
mx31lilly-db.c ARM: imx: remove IRQF_DISABLED 2013-10-21 09:11:05 +08:00
mx31lite-db.c
mx31moboard-devboard.c
mx31moboard-marxbot.c
mx31moboard-smartbot.c
mx35.h
mx51.h
mx53.h
mxc.h ARM: imx: enable suspend for imx6sl 2013-10-21 09:39:27 +08:00
pcm037.h
pcm970-baseboard.c
platsmp.c ARM: clean up cache handling in platform code 2013-12-11 16:24:34 -08:00
pm-imx3.c
pm-imx5.c ARM: mx53: Allow suspend/resume 2013-08-22 23:20:45 +08:00
pm-imx6.c ARM: SoC specific changes 2014-04-05 14:19:54 -07:00
pm-imx27.c
src.c ARM: imx: remove imx_src_prepare_restart() call 2013-11-11 22:58:43 +08:00
ssi-fiq-ksym.c
ssi-fiq.S
suspend-imx6.S ARM: imx6: move v7_cpu_resume() into suspend-imx6.S 2014-03-05 10:40:49 +08:00
system.c ARM: imx: improve mxc_restart() on the SRC bit writes 2013-11-11 22:58:43 +08:00
time.c ARM: imx: enable delaytimer on the imx timer 2014-03-05 10:35:15 +08:00
tzic.c
ulpi.h ARM: imx: Remove mxc specific ulpi access ops 2013-06-17 15:45:16 +08:00