mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 09:41:44 +00:00
[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
Block a user