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

staging: xillybus: fix error return code in xilly_probe()

Fix to return negative error code -EIO from the error handling
case instead of 0.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Wei Yongjun and committed by
Greg Kroah-Hartman
8eec4555 17afd17b

+1 -1
+1 -1
drivers/staging/xillybus/xillybus_pcie.c
··· 168 168 } 169 169 170 170 endpoint->registers = pci_iomap(pdev, 0, 128); 171 - 172 171 if (!endpoint->registers) { 173 172 dev_err(endpoint->dev, "Failed to map BAR 0. Aborting.\n"); 173 + rc = -EIO; 174 174 goto failed_iomap0; 175 175 } 176 176