]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] v4l: vsp1: Fix mutex double lock at streamon time
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 22 Aug 2013 22:51:01 +0000 (19:51 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 28 Aug 2013 08:40:07 +0000 (05:40 -0300)
A mutex_lock() was left when the driver was converted to use the vb2
ioctl helpers, resulting in a deadlock at streamon time. Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/vsp1/vsp1_video.c

index f51f84232e2fb20891cb4b4c4bfcebbdbf268f6d..714c53ef6c11b19d48304405f363f750b26547d2 100644 (file)
@@ -839,8 +839,6 @@ vsp1_video_streamon(struct file *file, void *fh, enum v4l2_buf_type type)
        struct vsp1_pipeline *pipe;
        int ret;
 
-       mutex_lock(&video->lock);
-
        if (video->queue.owner && video->queue.owner != file->private_data)
                return -EBUSY;