summaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-08-27 23:01:30 +0200
committerTony Luck <tony.luck@intel.com>2010-09-23 23:32:09 +0200
commitddad53ee8a85649e78f6a3eb8a4af4a7a7c577cb (patch)
treece66e74bb14f76b8531aaefcb4d55d6f458ac847 /arch/ia64
parent[IA64] salinfo: sema_init instead of init_MUTEX (diff)
downloadlinux-ddad53ee8a85649e78f6a3eb8a4af4a7a7c577cb.tar.xz
linux-ddad53ee8a85649e78f6a3eb8a4af4a7a7c577cb.zip
[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')
-rw-r--r--arch/ia64/kernel/cyclone.c2
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)
return -ENODEV;
}
base = readq(reg);
+ iounmap(reg);
if(!base){
printk(KERN_ERR "Summit chipset: Could not find valid CBAR"
" value.\n");
use_cyclone = 0;
return -ENODEV;
}
- iounmap(reg);
/* setup PMCC */
offset = (base + CYCLONE_PMCC_OFFSET);