Commit 36499dc2 authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds

[PATCH] synclink_gt: fix init error handling

Initialization synclink_gt forgot to unregister pci driver on error path.
Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Cc: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7b92ff01
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment