mirror of https://gitee.com/openkylin/linux.git
[media] gscpa_vicam: Fix oops if unplugged while streaming
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
69c003996b
commit
27d3e36609
|
@ -324,7 +324,8 @@ static void sd_stop0(struct gspca_dev *gspca_dev)
|
|||
dev->work_thread = NULL;
|
||||
mutex_lock(&gspca_dev->usb_lock);
|
||||
|
||||
vicam_set_camera_power(gspca_dev, 0);
|
||||
if (gspca_dev->present)
|
||||
vicam_set_camera_power(gspca_dev, 0);
|
||||
}
|
||||
|
||||
/* Table of supported USB devices */
|
||||
|
|
Loading…
Reference in New Issue