projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b92ff0
)
[PATCH] synclink_gt: fix init error handling
author
Akinobu Mita
<akinobu.mita@gmail.com>
Thu, 7 Dec 2006 04:39:06 +0000
(20:39 -0800)
committer
Linus Torvalds
<torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:42 +0000
(08:39 -0800)
Initialization synclink_gt forgot to unregister pci driver on error path.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/synclink_gt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/synclink_gt.c
b/drivers/char/synclink_gt.c
index 07f34d43dc7fe4eb4a961bf7a464a23241b32711..83b5d37d6c59655fbf5e2c782c163c9495cd3e7a 100644
(file)
--- a/
drivers/char/synclink_gt.c
+++ b/
drivers/char/synclink_gt.c
@@
-3522,6
+3522,7
@@
static int __init slgt_init(void)
if (!slgt_device_list) {
printk("%s no devices found\n",driver_name);
+ pci_unregister_driver(&pci_driver);
return -ENODEV;
}