summaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorMaxime Bizon <mbizon@freebox.fr>2014-06-23 16:35:35 +0200
committerTejun Heo <tj@kernel.org>2014-06-23 20:40:49 +0200
commitbddbceb688c6d0decaabc7884fede319d02f96c8 (patch)
tree1b1a4023565b22b537562137d044851edf1d4d66 /kernel/workqueue.c
parentepoll: fix use-after-free in eventpoll_release_file (diff)
downloadlinux-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.c1
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;
}