mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 17:46:41 +07:00
[media] stk-webcam: s_fmt shouldn't grab ownership
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>
This commit is contained in:
parent
1b499fe506
commit
f81e372a5d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user