Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andrew Morton and committed by
Linus Torvalds
c847d47c 6b06f191

+1 -1
+1 -1
drivers/char/cyclades.c
··· 5010 5010 if (nchan == 0) { 5011 5011 dev_err(&pdev->dev, "Cyclom-Y PCI host card with no " 5012 5012 "Serial-Modules\n"); 5013 - return -EIO; 5013 + goto err_unmap; 5014 5014 } 5015 5015 } else if (device_id == PCI_DEVICE_ID_CYCLOM_Z_Hi) { 5016 5016 struct RUNTIME_9060 __iomem *ctl_addr;