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
..
2013-02-04 22:56:41 -08:00
2013-10-21 09:15:12 +08:00
2013-10-21 09:11:05 +08:00
2013-12-31 09:36:40 +08:00
2012-12-24 09:36:38 -07:00
2012-12-24 09:36:38 -07:00
2012-12-24 09:36:38 -07:00
2012-12-24 09:36:38 -07:00
2012-12-24 09:36:38 -07:00
2012-12-24 09:36:38 -07:00
2012-12-24 09:36:38 -07:00
2013-10-21 09:11:05 +08:00
2012-12-24 09:36:38 -07:00
2012-12-24 09:36:38 -07:00
2012-12-24 09:36:38 -07:00
2012-12-24 09:36:38 -07:00
2013-12-19 15:10:49 +01:00
2012-12-24 09:36:38 -07:00
2012-12-24 09:36:38 -07:00
2013-01-03 15:57:04 -08:00
2013-07-15 08:28:07 +08:00
2013-10-21 09:11:05 +08:00
2013-10-21 09:39:27 +08:00
2013-08-22 23:20:45 +08:00
2014-04-05 14:19:54 -07:00