[PATCH] ARM: imx: fix error handling in ipu device registration

Olof Johansson olof at lixom.net
Wed May 21 22:18:50 PDT 2014


On Mon, May 19, 2014 at 03:07:54PM +0800, Shawn Guo wrote:
> From: Emil Goode <emilgoode at gmail.com>
> 
> 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 at gmail.com>
> Acked-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> Cc: <stable at vger.kernel.org>
> Signed-off-by: Shawn Guo <shawn.guo at freescale.com>
> ---
> Arnd, Olof,
> 
> Please consider to apply this fix for 3.15.  Thanks.

Applied, thanks.

BTW, it was requested to use a 12-character SHA in the Fixes: tag, since in the
future there might be a collision on the shortest one.

You can update the default for your git repo by setting the core.abbrevlength
config variable to 12.


-Olof



More information about the linux-arm-kernel mailing list