[media] stk-webcam: s_fmt shouldn't grab ownership
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 10 Feb 2013 17:36:41 +0000 (14:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Mar 2013 17:44:04 +0000 (14:44 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Tested-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/stkwebcam/stk-webcam.c

index a8fdbaf3472012ba2f2efe2da058aaafb50f3ad0..45d73e2f3e57a2e073635e3814a4e45db193fc48 100644 (file)
@@ -1019,12 +1019,11 @@ static int stk_vidioc_s_fmt_vid_cap(struct file *filp,
                return -ENODEV;
        if (is_streaming(dev))
                return -EBUSY;
-       if (dev->owner && dev->owner != filp)
+       if (dev->owner)
                return -EBUSY;
        ret = stk_try_fmt_vid_cap(filp, fmtd, &idx);
        if (ret)
                return ret;
-       dev->owner = filp;
 
        dev->vsettings.palette = fmtd->fmt.pix.pixelformat;
        stk_free_buffers(dev);