mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 08:03:00 -04:00
staging: unisys: visornic: don't destroy global workqueues until devs destroyed
visornic_cleanup() was previously incorrectly destroying its global workqueues prior to cleaning up the devices which used them. This patch corrects the order of these operations. Signed-off-by: Tim Sell <Timothy.Sell@unisys.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
46df82267e
commit
3798ff31d1
@@ -2241,6 +2241,8 @@ static int visornic_init(void)
|
||||
*/
|
||||
static void visornic_cleanup(void)
|
||||
{
|
||||
visorbus_unregister_visor_driver(&visornic_driver);
|
||||
|
||||
if (visornic_serverdown_workqueue) {
|
||||
flush_workqueue(visornic_serverdown_workqueue);
|
||||
destroy_workqueue(visornic_serverdown_workqueue);
|
||||
@@ -2251,7 +2253,6 @@ static void visornic_cleanup(void)
|
||||
}
|
||||
debugfs_remove_recursive(visornic_debugfs_dir);
|
||||
|
||||
visorbus_unregister_visor_driver(&visornic_driver);
|
||||
kfree(dev_num_pool);
|
||||
dev_num_pool = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user