ChangeSet 1.1743.3.5, 2004/05/24 17:03:52-07:00, [EMAIL PROTECTED]
[PATCH] USB: fix fix to kaweth.c
the previous patch was buggy. The state must be set _before_ the
condition is checked, or there's a window missing a wakeup.
This incremental change set fixes that.
- fix race condition with current->state
drivers/usb/net/kaweth.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -Nru a/drivers/usb/net/kaweth.c b/drivers/usb/net/kaweth.c
--- a/drivers/usb/net/kaweth.c Fri May 28 14:41:31 2004
+++ b/drivers/usb/net/kaweth.c Fri May 28 14:41:31 2004
@@ -1250,9 +1250,10 @@
return status;
}
+ set_current_state(TASK_UNINTERRUPTIBLE);
while (timeout && !awd.done) {
- set_current_state(TASK_UNINTERRUPTIBLE);
timeout = schedule_timeout(timeout);
+ set_current_state(TASK_UNINTERRUPTIBLE);
}
set_current_state(TASK_RUNNING);
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel