staging: xillybus: Return -EIO if *_iomap fails, instead of 0
authorEli Billauer <eli.billauer@gmail.com>
Tue, 17 Dec 2013 19:36:29 +0000 (21:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2013 01:07:13 +0000 (17:07 -0800)
commit9340e9dc9d000781a396917d3ca8e5a705cae765
tree7e2121147f8053687c1637c12685ec2ae87435ae
parent2d32927127f44d755780aa5fa88c8c34e72558f8
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 8eec4555511bfa1f8a2e0a2de45c988fd30c3efb.

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

Reported-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Eli Billauer <eli.billauer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xillybus/xillybus_of.c