[PATCH] powerpc: sysdev: add missing iounmap() on error in mpic_msgr_probe()

Michael Ellerman patch-notifications at ellerman.id.au
Wed Nov 25 22:57:50 AEDT 2020


On Wed, 28 Oct 2020 17:15:51 +0800, Qinglang Miao wrote:
> 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.

Applied to powerpc/next.

[1/1] powerpc: sysdev: add missing iounmap() on error in mpic_msgr_probe()
      https://git.kernel.org/powerpc/c/ffa1797040c5da391859a9556be7b735acbe1242

cheers


More information about the Linuxppc-dev mailing list