From: Mathias Krause Date: Sun, 30 Jan 2011 10:05:58 +0000 (-0300) Subject: [media] V4L: omap1_camera: fix use after free X-Git-Tag: v2.6.39-rc1~86^2~288 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bccd60852fc0a5ccc1980c10266896df99b8bda;p=pandora-kernel.git [media] V4L: omap1_camera: fix use after free Even though clk_put() is a no-op on most architectures it is not for some ARM implementations. To not fail on those, release the clock timer before freeing the surrounding structure. This bug was spotted by the semantic patch tool coccinelle using the script found at scripts/coccinelle/free/kfree.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Mathias Krause Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed