提交 f81e372a 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] stk-webcam: s_fmt shouldn't grab ownership

Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Tested-by: NArvydas Sidorenko <asido4@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 1b499fe5
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册