mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
Input: pegasus_notetaker - cancel workqueue's work in suspend()
Signed-off-by: Martin Kepplinger <martink@posteo.de> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
9d3bef0be5
commit
f32f539441
1 changed files with 1 additions and 0 deletions
|
@ -389,6 +389,7 @@ static int pegasus_suspend(struct usb_interface *intf, pm_message_t message)
|
||||||
|
|
||||||
mutex_lock(&pegasus->dev->mutex);
|
mutex_lock(&pegasus->dev->mutex);
|
||||||
usb_kill_urb(pegasus->irq);
|
usb_kill_urb(pegasus->irq);
|
||||||
|
cancel_work_sync(&pegasus->init);
|
||||||
mutex_unlock(&pegasus->dev->mutex);
|
mutex_unlock(&pegasus->dev->mutex);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue