diff options
author | Emil Goode <emilgoode@gmail.com> | 2014-05-19 15:07:54 +0800 |
---|---|---|
committer | Show Liu <show.liu@linaro.org> | 2014-06-18 12:05:19 +0800 |
commit | 5548550e8bca853d05d8dd90015a751e2d629f2f (patch) | |
tree | bc76045ad86c51f9cee1215a23e316b74193f951 /ipc | |
parent | 429955d88cd509f78781a820839deb66cbcf4946 (diff) |
ARM: imx: fix error handling in ipu device registration
commit d1d70e5dc2cfa9047bb935c41ba808ebb8135696 upstream.
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>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions