From: Akinobu Mita Date: Thu, 7 Dec 2006 04:39:06 +0000 (-0800) Subject: [PATCH] synclink_gt: fix init error handling X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=36499dc2bc8025bc931a0fb22bbe0ac0e46ffb14;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [PATCH] synclink_gt: fix init error handling Initialization synclink_gt forgot to unregister pci driver on error path. Signed-off-by: Akinobu Mita Cc: Paul Fulghum Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c index 07f34d43dc7f..83b5d37d6c59 100644 --- 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; }