We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afdc69b commit 6618545Copy full SHA for 6618545
drivers/media/usb/au0828/au0828-video.c
@@ -758,6 +758,9 @@ static int au0828_analog_stream_enable(struct au0828_dev *d)
758
759
dprintk(1, "au0828_analog_stream_enable called\n");
760
761
+ if (test_bit(DEV_DISCONNECTED, &d->dev_state))
762
+ return -ENODEV;
763
+
764
iface = usb_ifnum_to_if(d->usbdev, 0);
765
if (iface && iface->cur_altsetting->desc.bAlternateSetting != 5) {
766
dprintk(1, "Changing intf#0 to alt 5\n");
0 commit comments