summaryrefslogtreecommitdiff
path: root/drivers/media/video/omap3isp/ispstat.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-09-22 17:09:26 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-03 18:31:31 -0200
commited33ac8e0876a3016511ea0aaf9af1d965ee2c44 (patch)
treeb4b0c581a0ec831d3857d86205234b8924bd6ba5 /drivers/media/video/omap3isp/ispstat.c
parent39099d09ae4605003696919d7c3a6e8a96607c4b (diff)
[media] omap3isp: Add missing mutex_destroy() calls
Mutexes must be destroyed with mutex_destroy(). Add missing calls in the modules cleanup handlers. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/omap3isp/ispstat.c')
-rw-r--r--drivers/media/video/omap3isp/ispstat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/omap3isp/ispstat.c b/drivers/media/video/omap3isp/ispstat.c
index b124326d1e7f..28b7cc61cba6 100644
--- a/drivers/media/video/omap3isp/ispstat.c
+++ b/drivers/media/video/omap3isp/ispstat.c
@@ -1087,6 +1087,7 @@ int omap3isp_stat_init(struct ispstat *stat, const char *name,
void omap3isp_stat_cleanup(struct ispstat *stat)
{
media_entity_cleanup(&stat->subdev.entity);
+ mutex_destroy(&stat->ioctl_lock);
isp_stat_bufs_free(stat);
kfree(stat->buf);
}