mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 10:46:42 +07:00
[media] usbvision: fix locking error
When remove_pending is non-zero, v4l2_lock is never unlocked. Signed-off-by: Insu Yun <wuninsu@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
137aa3617b
commit
5ce625a42d
@ -1147,6 +1147,7 @@ static int usbvision_radio_close(struct file *file)
|
||||
usbvision_audio_off(usbvision);
|
||||
usbvision->radio = 0;
|
||||
usbvision->user--;
|
||||
mutex_unlock(&usbvision->v4l2_lock);
|
||||
|
||||
if (usbvision->remove_pending) {
|
||||
printk(KERN_INFO "%s: Final disconnect\n", __func__);
|
||||
@ -1155,7 +1156,6 @@ static int usbvision_radio_close(struct file *file)
|
||||
return 0;
|
||||
}
|
||||
|
||||
mutex_unlock(&usbvision->v4l2_lock);
|
||||
PDEBUG(DBG_IO, "success");
|
||||
return v4l2_fh_release(file);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user