Explorar o código

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>
Liu Shuo %!s(int64=13) %!d(string=hai) anos
pai
achega
b53804c702
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      arch/powerpc/sysdev/fsl_msi.c

+ 1 - 0
arch/powerpc/sysdev/fsl_msi.c

@@ -410,6 +410,7 @@ static int __devinit fsl_of_msi_probe(struct platform_device *dev)
 
 		msi->msi_regs = ioremap(res.start, resource_size(&res));
 		if (!msi->msi_regs) {
+			err = -ENOMEM;
 			dev_err(&dev->dev, "could not map node %s\n",
 				dev->dev.of_node->full_name);
 			goto error_out;