Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2002-07-31 22:11:46 -0700
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-07-31 22:11:46 -0700
commit4306e20b197c4c76cdd23f71356a653238b1d8ac (patch)
tree2de273aa1064fb5d268bc763f2a1c50cc90948d5
parent385b282877b6e4cfd298f95f247e58f5fa169293 (diff)
[PATCH] swsusp: Vojtech pointed error in usb/hub.c
We do not want threads exiting because of suspend, so refrigerator should be just before test for signals pending (so it has chance to kill them).
-rw-r--r--drivers/usb/core/hub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index f80a98621d26..cfeb3f5b6d2e 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -1059,9 +1059,9 @@ static int usb_hub_thread(void *__hub)
/* Send me a signal to get me die (for debugging) */
do {
usb_hub_events();
+ wait_event_interruptible(khubd_wait, !list_empty(&hub_event_list));
if (current->flags & PF_FREEZE)
refrigerator(PF_IOTHREAD);
- wait_event_interruptible(khubd_wait, !list_empty(&hub_event_list));
} while (!signal_pending(current));
dbg("usb_hub_thread exiting");