Skip to contentSkip to conversation

sisusbvga: Fix oops on disconnect.

PATCH New Will Newton 1 participant 1 message Jun 27, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sisusbvga: Fix oops on disconnect.

From: Will Newton <[email protected]>

Remove dev_info call on disconnect. The sisusb_dev pointer may have been set to zero by sisusb_delete at this point causing an oops.

The message does not provide any extra information over the standard USB subsystem output so removing it does not affect functionality.

---
 drivers/usb/misc/sisusbvga/sisusb.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/usb/misc/sisusbvga/sisusb.c +0 -2
index cb7fa0e..33182f4 100644
@@ -3264,8 +3264,6 @@ static void sisusb_disconnect(struct usb_interface *intf)
 
 	/* decrement our usage count */
 	kref_put(&sisusb->kref, sisusb_delete);
-
-	dev_info(&sisusb->sisusb_dev->dev, "Disconnected\n");
 }
 
 static struct usb_device_id sisusb_table [] = {
Signature · 1 line
1.5.5.2