diff options
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r-- | kernel/workqueue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 54a8fff43479..bbf46da28e9a 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -1507,6 +1507,7 @@ static void __queue_delayed_work(int cpu, struct workqueue_struct *wq, | |||
1507 | struct timer_list *timer = &dwork->timer; | 1507 | struct timer_list *timer = &dwork->timer; |
1508 | struct work_struct *work = &dwork->work; | 1508 | struct work_struct *work = &dwork->work; |
1509 | 1509 | ||
1510 | WARN_ON_ONCE(!wq); | ||
1510 | WARN_ON_ONCE(timer->function != delayed_work_timer_fn || | 1511 | WARN_ON_ONCE(timer->function != delayed_work_timer_fn || |
1511 | timer->data != (unsigned long)dwork); | 1512 | timer->data != (unsigned long)dwork); |
1512 | WARN_ON_ONCE(timer_pending(timer)); | 1513 | WARN_ON_ONCE(timer_pending(timer)); |