diff options
author | Julia Lawall <julia@diku.dk> | 2010-08-27 17:01:30 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2010-09-23 17:32:09 -0400 |
commit | ddad53ee8a85649e78f6a3eb8a4af4a7a7c577cb (patch) | |
tree | ce66e74bb14f76b8531aaefcb4d55d6f458ac847 /arch/ia64/kernel | |
parent | 383f9f1741cd03687303f82543bbae11935a2ad6 (diff) |
[IA64] Fix missing iounmap in error path in cyclone.c
By moving the iounmap up above the test, it takes place whether the test
succeeds or fails.
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel')
-rw-r--r-- | arch/ia64/kernel/cyclone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/kernel/cyclone.c b/arch/ia64/kernel/cyclone.c index 71e35864d2e2..d52f1f78eff2 100644 --- a/arch/ia64/kernel/cyclone.c +++ b/arch/ia64/kernel/cyclone.c | |||
@@ -59,13 +59,13 @@ int __init init_cyclone_clock(void) | |||
59 | return -ENODEV; | 59 | return -ENODEV; |
60 | } | 60 | } |
61 | base = readq(reg); | 61 | base = readq(reg); |
62 | iounmap(reg); | ||
62 | if(!base){ | 63 | if(!base){ |
63 | printk(KERN_ERR "Summit chipset: Could not find valid CBAR" | 64 | printk(KERN_ERR "Summit chipset: Could not find valid CBAR" |
64 | " value.\n"); | 65 | " value.\n"); |
65 | use_cyclone = 0; | 66 | use_cyclone = 0; |
66 | return -ENODEV; | 67 | return -ENODEV; |
67 | } | 68 | } |
68 | iounmap(reg); | ||
69 | 69 | ||
70 | /* setup PMCC */ | 70 | /* setup PMCC */ |
71 | offset = (base + CYCLONE_PMCC_OFFSET); | 71 | offset = (base + CYCLONE_PMCC_OFFSET); |