[PATCH AUTOSEL 4.19 133/146] firmware: coreboot: Unmap ioregion after device population

2018-10-31 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit 20edec388277b62ddfddb8b2b376a937a2cd6d1b ] Both callers of coreboot_table_init() ioremap the pointer that comes in but they don't unmap the memory on failure. Both of them also fail probe immediately with the return value of coreboot_table_init(), leaking a

[PATCH AUTOSEL 4.19 133/146] firmware: coreboot: Unmap ioregion after device population

2018-10-31 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit 20edec388277b62ddfddb8b2b376a937a2cd6d1b ] Both callers of coreboot_table_init() ioremap the pointer that comes in but they don't unmap the memory on failure. Both of them also fail probe immediately with the return value of coreboot_table_init(), leaking a