mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
[media] usbvision-video: two use after frees
The lock has been freed in usbvision_release() so there is no need to call mutex_unlock() here. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
a4789e6fc2
commit
470a914789
1 changed files with 2 additions and 0 deletions
|
|
@ -446,6 +446,7 @@ static int usbvision_v4l2_close(struct file *file)
|
|||
if (usbvision->remove_pending) {
|
||||
printk(KERN_INFO "%s: Final disconnect\n", __func__);
|
||||
usbvision_release(usbvision);
|
||||
return 0;
|
||||
}
|
||||
mutex_unlock(&usbvision->v4l2_lock);
|
||||
|
||||
|
|
@ -1221,6 +1222,7 @@ static int usbvision_radio_close(struct file *file)
|
|||
if (usbvision->remove_pending) {
|
||||
printk(KERN_INFO "%s: Final disconnect\n", __func__);
|
||||
usbvision_release(usbvision);
|
||||
return err_code;
|
||||
}
|
||||
|
||||
mutex_unlock(&usbvision->v4l2_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue