Commit d48bd977 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman
Browse files

USB: fix locking loop by avoiding flush_scheduled_work

This patch (as1027) replaces a call to flush_scheduled_work() -- a
dangerous routine to invoke, especially while holding any sort of lock
-- with calls to cancel_work_sync() and cancel_delayed_work_sync().

This fixes Bugzilla #9532.
Signed-off-by: default avatarAlan Stern <>
CC: David Brownell <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent f88ed90d
......@@ -522,9 +522,9 @@ static void hub_quiesce(struct usb_hub *hub)
/* (blocking) stop khubd and related activity */
if (hub->has_indicators)
if (hub->has_indicators || hub->tt.hub)
if (hub->tt.hub)
static void hub_activate(struct usb_hub *hub)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment