diff mbox

[1/1] media: dvb-usb/af9015, fix disconnection crashes

Message ID 1264007972-6261-1-git-send-email-jslaby@suse.cz (mailing list archive)
State Rejected
Headers show

Commit Message

Jiri Slaby Jan. 20, 2010, 5:19 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c
index f0d5731..bd20945 100644
--- a/drivers/media/dvb/dvb-usb/af9015.c
+++ b/drivers/media/dvb/dvb-usb/af9015.c
@@ -1661,6 +1661,10 @@  static void af9015_usb_device_exit(struct usb_interface *intf)
 	struct dvb_usb_device *d = usb_get_intfdata(intf);
 	deb_info("%s: \n", __func__);
 
+	/* we do nothing for remote controller interface */
+	if (intf->cur_altsetting->desc.bInterfaceNumber != 0)
+		return;
+
 	/* remove 2nd I2C adapter */
 	if (d != NULL && d->desc != NULL)
 		af9015_i2c_exit(d);