diff options
author | Maxime Bizon <mbizon@freebox.fr> | 2014-06-23 16:35:35 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-06-23 20:40:49 +0200 |
commit | bddbceb688c6d0decaabc7884fede319d02f96c8 (patch) | |
tree | 1b1a4023565b22b537562137d044851edf1d4d66 /kernel/workqueue.c | |
parent | epoll: fix use-after-free in eventpoll_release_file (diff) | |
download | linux-bddbceb688c6d0decaabc7884fede319d02f96c8.tar.xz linux-bddbceb688c6d0decaabc7884fede319d02f96c8.zip |
workqueue: fix dev_set_uevent_suppress() imbalance
Uevents are suppressed during attributes registration, but never
restored, so kobject_uevent() does nothing.
Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org
Fixes: 226223ab3c4118ddd10688cc2c131135848371ab
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 6203d2900877..6f5f9c7323f4 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -3284,6 +3284,7 @@ int workqueue_sysfs_register(struct workqueue_struct *wq) } } + dev_set_uevent_suppress(&wq_dev->dev, false); kobject_uevent(&wq_dev->dev.kobj, KOBJ_ADD); return 0; } |