Messages in this thread | | | From | Hayes Wang <> | Subject | RE: [PATCH net] r8152: use cancel_delayed_work for runtime suspend | Date | Mon, 20 Oct 2014 02:19:27 +0000 |
| |
Oliver Neukum [mailto:oliver@neukum.org] > Sent: Sunday, October 19, 2014 3:48 AM [...] > The diagnosis is good, the fix is not good. It opens a race > during which the queued work can touch a suspended device.
The delayed work would wake up the device by calling usb_autopm_get_interface() before accessing the device. Besides, there is a mutex to avoid the race.
Best Regards, Hayes
| |