Skip to content

Commit

Permalink
[PATCH] synclink_gt: fix init error handling
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Dec 7, 2006
1 parent 7b92ff0 commit 36499dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/synclink_gt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 36499dc

Please sign in to comment.