[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>
This commit is contained in:
parent
383f9f1741
commit
ddad53ee8a
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue