mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] synclink_gt: fix init error handling
@ 2006-11-27  5:10 Akinobu Mita
  0 siblings, 0 replies; only message in thread
From: Akinobu Mita @ 2006-11-27  5:10 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm

Initialization synclink_gt forgot to unregister pci driver on error path.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>

---
 drivers/char/synclink_gt.c |    1 +
 1 file changed, 1 insertion(+)

Index: work-fault-inject/drivers/char/synclink_gt.c
===================================================================
--- work-fault-inject.orig/drivers/char/synclink_gt.c
+++ work-fault-inject/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;
 	}
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-27  5:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-27  5:10 [PATCH] synclink_gt: fix init error handling Akinobu Mita

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome