]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: imx: fix error handling in ipu device registration
authorEmil Goode <emilgoode@gmail.com>
Mon, 19 May 2014 07:07:54 +0000 (15:07 +0800)
committerOlof Johansson <olof@lixom.net>
Thu, 22 May 2014 05:16:56 +0000 (22:16 -0700)
commita13730093b3ac7041d60b3bc439b5c8c5f90ca93
tree2d4f25fbf928ebc38aa859391eec1cc4c4e8d0de
parent9a66d52057333c6637997e9e17bffeb99bd4b750
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: cab8361 (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>
arch/arm/mach-imx/devices/platform-ipu-core.c