From: Emil Goode Date: Mon, 19 May 2014 07:07:54 +0000 (+0800) Subject: ARM: imx: fix error handling in ipu device registration X-Git-Tag: omap-for-v3.16/fixes-against-rc1~135^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1d70e5dc2cfa9047bb935c41ba808ebb8135696;p=pandora-kernel.git 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 Acked-by: Uwe Kleine-König Cc: Signed-off-by: Shawn Guo Signed-off-by: Olof Johansson --- Reading git-diff-tree failed