Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9340e9dc authored by Eli Billauer's avatar Eli Billauer Committed by Greg Kroah-Hartman
Browse files

staging: xillybus: Return -EIO if *_iomap fails, instead of 0



This patch replicates the correction made by Wei Yongjun on a second
occurrence of the same bug.

The first correction was in commit 8eec4555.

Bug fixed: The error code was not set, so the error condition wasn't reflected
in the return value.

Reported-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarEli Billauer <eli.billauer@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2d329271
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,10 +131,10 @@ static int xilly_drv_probe(struct platform_device *op)
	}

	endpoint->registers = of_iomap(dev->of_node, 0);

	if (!endpoint->registers) {
		dev_err(endpoint->dev,
			"Failed to map I/O memory. Aborting.\n");
		rc = -EIO;
		goto failed_iomap0;
	}