diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 92721d1534b8..f6febb25c7b6 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -3859,7 +3859,10 @@ EXPORT_SYMBOL(wait_for_completion_timeout); | |||
3859 | 3859 | ||
3860 | int __sched wait_for_completion_interruptible(struct completion *x) | 3860 | int __sched wait_for_completion_interruptible(struct completion *x) |
3861 | { | 3861 | { |
3862 | return wait_for_common(x, MAX_SCHEDULE_TIMEOUT, TASK_INTERRUPTIBLE); | 3862 | long t = wait_for_common(x, MAX_SCHEDULE_TIMEOUT, TASK_INTERRUPTIBLE); |
3863 | if (t == -ERESTARTSYS) | ||
3864 | return t; | ||
3865 | return 0; | ||
3863 | } | 3866 | } |
3864 | EXPORT_SYMBOL(wait_for_completion_interruptible); | 3867 | EXPORT_SYMBOL(wait_for_completion_interruptible); |
3865 | 3868 | ||