mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-18 03:06:43 +00:00
staging: vt6656: Fix oops on resume from suspend.
commit 6987a6dabfc40222ef767f67b57212fe3a0225fb upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4fba7d11ee
commit
e41eeb8a04
@ -725,8 +725,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;
|
||||
}
|
||||
|
||||
@ -737,8 +735,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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user