Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bddbceb6 authored by Maxime Bizon's avatar Maxime Bizon Committed by Tejun Heo
Browse files

workqueue: fix dev_set_uevent_suppress() imbalance



Uevents are suppressed during attributes registration, but never
restored, so kobject_uevent() does nothing.

Signed-off-by: default avatarMaxime Bizon <mbizon@freebox.fr>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org
Fixes: 226223ab
parent ebe06187
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}