projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9ecdea
)
virtio-pci: correctly unregister root device on error
author
Mark McLoughlin
<markmc@redhat.com>
Tue, 7 Jul 2009 07:26:45 +0000
(08:26 +0100)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Fri, 17 Jul 2009 12:17:47 +0000
(21:47 +0930)
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
patch
|
blob
|
history
diff --git
a/drivers/virtio/virtio_pci.c
b/drivers/virtio/virtio_pci.c
index
193c8f0
..
bcec78f
100644
(file)
--- a/
drivers/virtio/virtio_pci.c
+++ b/
drivers/virtio/virtio_pci.c
@@
-669,7
+669,7
@@
static int __init virtio_pci_init(void)
err = pci_register_driver(&virtio_pci_driver);
if (err)
- device_unregister(virtio_pci_root);
+
root_
device_unregister(virtio_pci_root);
return err;
}