Re: [PATCH 1/2 v4] ARM: imx: fix error handling in ipu device registration

2014-05-18 Thread Shawn Guo
On Mon, May 19, 2014 at 08:31:45AM +0200, Uwe Kleine-König wrote: > On Sun, May 18, 2014 at 10:50:59PM +0200, Emil Goode wrote: > > If we fail to allocate struct platform_device pdev we > > dereference it after the goto label err. > > > > This bug was found using coccinelle. > > > > Signed-off-by

Re: [PATCH 1/2 v4] ARM: imx: fix error handling in ipu device registration

2014-05-18 Thread Uwe Kleine-König
On Sun, May 18, 2014 at 10:50:59PM +0200, Emil Goode wrote: > If we fail to allocate struct platform_device pdev we > dereference it after the goto label err. > > This bug was found using coccinelle. > > Signed-off-by: Emil Goode Acked-by: Uwe Kleine-König Shawn, is it already to late for 3.15

[PATCH 1/2 v4] ARM: imx: fix error handling in ipu device registration

2014-05-18 Thread Emil Goode
If we fail to allocate struct platform_device pdev we dereference it after the goto label err. This bug was found using coccinelle. Signed-off-by: Emil Goode --- v4: Simplified version that just fixes the bug. Also updated the changelog. v3: Made subject line more specific. v2: Changed to re