提交 ddad53ee 编写于 作者: J Julia Lawall 提交者: Tony Luck

[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: NJulia Lawall <julia@diku.dk>
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 383f9f17
...@@ -59,13 +59,13 @@ int __init init_cyclone_clock(void) ...@@ -59,13 +59,13 @@ int __init init_cyclone_clock(void)
return -ENODEV; return -ENODEV;
} }
base = readq(reg); base = readq(reg);
iounmap(reg);
if(!base){ if(!base){
printk(KERN_ERR "Summit chipset: Could not find valid CBAR" printk(KERN_ERR "Summit chipset: Could not find valid CBAR"
" value.\n"); " value.\n");
use_cyclone = 0; use_cyclone = 0;
return -ENODEV; return -ENODEV;
} }
iounmap(reg);
/* setup PMCC */ /* setup PMCC */
offset = (base + CYCLONE_PMCC_OFFSET); offset = (base + CYCLONE_PMCC_OFFSET);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册