Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/fsl_msi: return proper error value when ioremap failed.

Signed-off-by: Liu Shuo <soniccat.liu@gmail.com>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

authored by

Liu Shuo and committed by
Kumar Gala
b53804c7 e131fbda

+1
+1
arch/powerpc/sysdev/fsl_msi.c
··· 410 410 411 411 msi->msi_regs = ioremap(res.start, resource_size(&res)); 412 412 if (!msi->msi_regs) { 413 + err = -ENOMEM; 413 414 dev_err(&dev->dev, "could not map node %s\n", 414 415 dev->dev.of_node->full_name); 415 416 goto error_out;