projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
383f9f1
)
[IA64] Fix missing iounmap in error path in cyclone.c
author
Julia Lawall
<julia@diku.dk>
Fri, 27 Aug 2010 21:01:30 +0000
(23:01 +0200)
committer
Tony Luck
<tony.luck@intel.com>
Thu, 23 Sep 2010 21:32:09 +0000
(14:32 -0700)
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>
arch/ia64/kernel/cyclone.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/ia64/kernel/cyclone.c
b/arch/ia64/kernel/cyclone.c
index 71e35864d2e251a48630472071f5c9ae76af39e0..d52f1f78eff2ab01b126cc5ef35e2039400fddaf 100644
(file)
--- 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);