Skip to content

Commit

Permalink
staging: vt6656: Fix oops on resume from suspend.
Browse files Browse the repository at this point in the history
Remove usb_put_dev from vt6656_suspend and usb_get_dev
from vt6566_resume.

These are not normally in suspend/resume functions.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Cc: stable@vger.kernel.org # 3.0+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Malcolm Priestley authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent 1223ad3 commit 6987a6d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/vt6656/main_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,6 @@ static int vt6656_suspend(struct usb_interface *intf, pm_message_t message)
if (device->flags & DEVICE_FLAGS_OPENED)
device_close(device->dev);

usb_put_dev(interface_to_usbdev(intf));

return 0;
}

Expand All @@ -681,8 +679,6 @@ static int vt6656_resume(struct usb_interface *intf)
if (!device || !device->dev)
return -ENODEV;

usb_get_dev(interface_to_usbdev(intf));

if (!(device->flags & DEVICE_FLAGS_OPENED))
device_open(device->dev);

Expand Down

0 comments on commit 6987a6d

Please sign in to comment.