diff options
| author | Ingo Molnar <mingo@kernel.org> | 2018-03-24 09:25:26 +0100 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2018-03-24 09:25:26 +0100 |
| commit | ea2301b6220117398a1de4f4bc853fbe886d5e08 (patch) | |
| tree | 8823c3becd0b4fd3db9706892845cd02f760627a /kernel/workqueue.c | |
| parent | 0803e6051c1562e1525c3e044313390bf8b35c2b (diff) | |
| parent | 99fec39e7725d091c94d1bb0242e40c8092994f6 (diff) | |
| download | linux-ea2301b6220117398a1de4f4bc853fbe886d5e08.tar.gz linux-ea2301b6220117398a1de4f4bc853fbe886d5e08.zip | |
Merge branch 'linus' into x86/dma, to resolve a conflict with upstream
Conflicts:
arch/x86/mm/init_64.c
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/workqueue.c')
| -rw-r--r-- | kernel/workqueue.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index bb9a519cbf50..6ec6ba65127b 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -3018,14 +3018,6 @@ static bool __cancel_work(struct work_struct *work, bool is_dwork) return ret; } -/* - * See cancel_delayed_work() - */ -bool cancel_work(struct work_struct *work) -{ - return __cancel_work(work, false); -} - /** * cancel_delayed_work - cancel a delayed work * @dwork: delayed_work to cancel @@ -5337,7 +5329,7 @@ int workqueue_sysfs_register(struct workqueue_struct *wq) ret = device_register(&wq_dev->dev); if (ret) { - kfree(wq_dev); + put_device(&wq_dev->dev); wq->wq_dev = NULL; return ret; } |
