diff options
author | Mathias Krause <minipli@googlemail.com> | 2011-01-30 07:05:58 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-21 20:32:14 -0300 |
commit | 5bccd60852fc0a5ccc1980c10266896df99b8bda (patch) | |
tree | eefbf7feda0db2d2d23c9b8d22b739adedc8c5a0 /drivers/media/video/mx3_camera.c | |
parent | 48a3c77338d725d4976fa792d822eb940ce5c296 (diff) |
[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 <minipli@googlemail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/mx3_camera.c')
0 files changed, 0 insertions, 0 deletions