diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2009-01-02 08:50:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-02 13:19:43 -0500 |
commit | c847d47cb7b2fa78b17c9e17ed3fbd010ee3d3ca (patch) | |
tree | f497cffce4bd60dfe53d54dbd84179a470b8a6b5 /drivers | |
parent | 6b06f19151c335ee0c5b61839fa4e6838182ebb8 (diff) |
drivers/char/cyclades.c: cy_pci_probe: fix error path
We forgot to release resources in one case.
Addresses http://bugzilla.kernel.org/show_bug.cgi?id=12137
Reported-by: Florian Lohoff <flo@rfc822.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/cyclades.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c index 5e5b1dc1a0a7..6a59f72a9c21 100644 --- a/drivers/char/cyclades.c +++ b/drivers/char/cyclades.c | |||
@@ -5010,7 +5010,7 @@ static int __devinit cy_pci_probe(struct pci_dev *pdev, | |||
5010 | if (nchan == 0) { | 5010 | if (nchan == 0) { |
5011 | dev_err(&pdev->dev, "Cyclom-Y PCI host card with no " | 5011 | dev_err(&pdev->dev, "Cyclom-Y PCI host card with no " |
5012 | "Serial-Modules\n"); | 5012 | "Serial-Modules\n"); |
5013 | return -EIO; | 5013 | goto err_unmap; |
5014 | } | 5014 | } |
5015 | } else if (device_id == PCI_DEVICE_ID_CYCLOM_Z_Hi) { | 5015 | } else if (device_id == PCI_DEVICE_ID_CYCLOM_Z_Hi) { |
5016 | struct RUNTIME_9060 __iomem *ctl_addr; | 5016 | struct RUNTIME_9060 __iomem *ctl_addr; |