Commit c847d47cb7b2fa78b17c9e17ed3fbd010ee3d3ca
Committed by
Linus Torvalds
1 parent
6b06f19151
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/char/cyclades.c
... | ... | @@ -5010,7 +5010,7 @@ |
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; |