summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2016-05-13 18:15:59 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-06-28 12:14:10 -0300
commit0220990f63668852c8a2a8f03e3afb422780ef9d (patch)
treea2be6ddc7ce712e29b9caa20e792c49f30badd94 /drivers/media/platform
parent9489a8ff0a13fc0f62e556a31341d3bbaef9da6b (diff)
downloadop-kernel-dev-0220990f63668852c8a2a8f03e3afb422780ef9d.zip
op-kernel-dev-0220990f63668852c8a2a8f03e3afb422780ef9d.tar.gz
[media] v4l: vsp1: lut: Initialize the mutex
The LUT mutex isn't initialized when creating the LUT, fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/vsp1/vsp1_lut.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_lut.c b/drivers/media/platform/vsp1/vsp1_lut.c
index 855e483..4a47249 100644
--- a/drivers/media/platform/vsp1/vsp1_lut.c
+++ b/drivers/media/platform/vsp1/vsp1_lut.c
@@ -201,6 +201,8 @@ struct vsp1_lut *vsp1_lut_create(struct vsp1_device *vsp1)
if (lut == NULL)
return ERR_PTR(-ENOMEM);
+ mutex_init(&lut->lock);
+
lut->entity.ops = &lut_entity_ops;
lut->entity.type = VSP1_ENTITY_LUT;
OpenPOWER on IntegriCloud