提交 36499dc2 编写于 作者: A Akinobu Mita 提交者: Linus Torvalds

[PATCH] synclink_gt: fix init error handling

Initialization synclink_gt forgot to unregister pci driver on error path.
Signed-off-by: NAkinobu Mita <akinobu.mita@gmail.com>
Cc: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 7b92ff01
...@@ -3522,6 +3522,7 @@ static int __init slgt_init(void) ...@@ -3522,6 +3522,7 @@ static int __init slgt_init(void)
if (!slgt_device_list) { if (!slgt_device_list) {
printk("%s no devices found\n",driver_name); printk("%s no devices found\n",driver_name);
pci_unregister_driver(&pci_driver);
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册