From: Laurent Pinchart Date: Thu, 5 Nov 2015 12:28:56 +0000 (-0200) Subject: [media] v4l: vsp1: Add race condition FIXME comment X-Git-Tag: v4.7-rc1~130^2~116 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=613721265ab8d3df784488e3073d92fcb466df34;p=karo-tx-linux.git [media] v4l: vsp1: Add race condition FIXME comment Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/vsp1/vsp1_video.c b/drivers/media/platform/vsp1/vsp1_video.c index 7cb270f57f62..102977ae1daa 100644 --- a/drivers/media/platform/vsp1/vsp1_video.c +++ b/drivers/media/platform/vsp1/vsp1_video.c @@ -813,6 +813,9 @@ vsp1_video_streamon(struct file *file, void *fh, enum v4l2_buf_type type) * * Use the VSP1 pipeline object embedded in the first video object that * starts streaming. + * + * FIXME: This is racy, the ioctl is only protected by the video node + * lock. */ pipe = video->video.entity.pipe ? to_vsp1_pipeline(&video->video.entity) : &video->pipe;