[media] v4l: vsp1: lut: Initialize the mutex
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 13 May 2016 21:15:59 +0000 (18:15 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 28 Jun 2016 15:14:10 +0000 (12:14 -0300)
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>
drivers/media/platform/vsp1/vsp1_lut.c

index 855e483acb890d25a2a51303b7df440f8c655afe..4a4724965de1ffb542245313eee9888cdf1fce93 100644 (file)
@@ -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;
 
This page took 0.02578 seconds and 5 git commands to generate.