Skip to content

Commit

Permalink
sisusbvga: Fix oops on disconnect.
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Will Newton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
willnewton authored and gregkh committed Jul 4, 2008
1 parent e72616f commit f15e397
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/misc/sisusbvga/sisusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 [] = {
Expand Down

0 comments on commit f15e397

Please sign in to comment.