]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-pci: correctly unregister root device on error
authorMark McLoughlin <markmc@redhat.com>
Tue, 7 Jul 2009 07:26:45 +0000 (08:26 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 17 Jul 2009 12:17:47 +0000 (21:47 +0930)
commit03a408ee70734b0a929396fe7dcf79faf29cdace
tree82214468d537c8cf90b1fc0195bf33c688db3bfd
parent282de71945bcac2b8090f9b154e5605afbd349cc
virtio-pci: correctly unregister root device on error

If pci_register_driver() fails we're incorrectly unregistering the root
device with device_unregister() rather than root_device_unregister().

Reported-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_pci.c