projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b06f19
)
drivers/char/cyclades.c: cy_pci_probe: fix error path
author
Andrew Morton
<
[email protected]
>
Fri, 2 Jan 2009 13:50:07 +0000
(13:50 +0000)
committer
Linus Torvalds
<
[email protected]
>
Fri, 2 Jan 2009 18:19:43 +0000
(10:19 -0800)
We forgot to release resources in one case.
Addresses http://bugzilla.kernel.org/show_bug.cgi?id=12137
Reported-by: Florian Lohoff <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Alan Cox <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/char/cyclades.c
patch
|
blob
|
history
diff --git
a/drivers/char/cyclades.c
b/drivers/char/cyclades.c
index 5e5b1dc1a0a72be733ce32b93966113e6cf224c7..6a59f72a9c2157697de1a3228a19296e1fc89fb2 100644
(file)
--- a/
drivers/char/cyclades.c
+++ b/
drivers/char/cyclades.c
@@
-5010,7
+5010,7
@@
static int __devinit cy_pci_probe(struct pci_dev *pdev,
if (nchan == 0) {
dev_err(&pdev->dev, "Cyclom-Y PCI host card with no "
"Serial-Modules\n");
-
return -EIO
;
+
goto err_unmap
;
}
} else if (device_id == PCI_DEVICE_ID_CYCLOM_Z_Hi) {
struct RUNTIME_9060 __iomem *ctl_addr;