Home
last modified time | relevance | path

Searched hist:ffa17970 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/powerpc/sysdev/
H A Dmpic_msgr.cffa17970 Wed Oct 28 04:15:51 CDT 2020 Qinglang Miao <miaoqinglang@huawei.com> powerpc: sysdev: add missing iounmap() on error in mpic_msgr_probe()

I noticed that iounmap() of msgr_block_addr before return from
mpic_msgr_probe() in the error handling case is missing. So use
devm_ioremap() instead of just ioremap() when remapping the message
register block, so the mapping will be automatically released on
probe failure.

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201028091551.136400-1-miaoqinglang@huawei.com