Commit 1cacb456 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: svc: flush workqueue at connection exit

Make sure to flush the workqueue from hotplug and hotunplug events when
the svc connection is tore down.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 8e1d6c33
......@@ -709,6 +709,8 @@ static void gb_svc_connection_exit(struct gb_connection *connection)
if (device_is_registered(&svc->dev))
device_del(&svc->dev);
flush_workqueue(svc->wq);
connection->hd->svc = NULL;
connection->private = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment