Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddad53ee authored by Julia Lawall's avatar Julia Lawall Committed by Tony Luck
Browse files

[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: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 383f9f17
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);