summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorMaxime Bizon <mbizon@freebox.fr>2014-06-23 16:35:35 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-17 16:21:03 -0700
commit7a7332c9fc03b810731b13628a7431e7d8c6a36d (patch)
treec7f45ea6ff60c712c115c2698aabe9919409e192 /kernel
parent3ad0b55167a0a2cd4b13b917348aad3c5c8ee7c5 (diff)
workqueue: fix dev_set_uevent_suppress() imbalance
commit bddbceb688c6d0decaabc7884fede319d02f96c8 upstream. 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> Fixes: 226223ab3c4118ddd10688cc2c131135848371ab Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/workqueue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index b6a394108e3b..d3e415b5ed7d 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -3415,6 +3415,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;
}