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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;