Commit 27d3e366 authored by Hans de Goede's avatar Hans de Goede Committed by Mauro Carvalho Chehab
Browse files

[media] gscpa_vicam: Fix oops if unplugged while streaming

parent 69c00399
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -324,6 +324,7 @@ static void sd_stop0(struct gspca_dev *gspca_dev)
	dev->work_thread = NULL;
	mutex_lock(&gspca_dev->usb_lock);

	if (gspca_dev->present)
		vicam_set_camera_power(gspca_dev, 0);
}