]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-net: fix module unloading
authorAndrew Jones <drjones@redhat.com>
Mon, 24 Jul 2017 13:38:32 +0000 (15:38 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 25 Jul 2017 13:37:36 +0000 (16:37 +0300)
commit65e50c74f6b5201d68e8c3047b65d96a6463fe98
tree910ffe5323fd35fa7f58b24ec19fff5ea888a651
parent2f69921bc02bf58cbea0cf9ccae94a8b14651d51
virtio-net: fix module unloading

Unregister the driver before removing multi-instance hotplug
callbacks. This order avoids the warning issued from
__cpuhp_remove_state_cpuslocked when the number of remaining
instances isn't yet zero.

Fixes: c798bd1ec67a ("net/virtio-net: Convert to hotplug state machine")
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/net/virtio_net.c