Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0220990f authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab
Browse files

[media] v4l: vsp1: lut: Initialize the mutex



The LUT mutex isn't initialized when creating the LUT, fix it.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 9489a8ff
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -201,6 +201,8 @@ struct vsp1_lut *vsp1_lut_create(struct vsp1_device *vsp1)
	if (lut == NULL)
	if (lut == NULL)
		return ERR_PTR(-ENOMEM);
		return ERR_PTR(-ENOMEM);


	mutex_init(&lut->lock);

	lut->entity.ops = &lut_entity_ops;
	lut->entity.ops = &lut_entity_ops;
	lut->entity.type = VSP1_ENTITY_LUT;
	lut->entity.type = VSP1_ENTITY_LUT;