From 2ef760323a8a7ced5e1b2286c8df95226606a64e Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Sun, 20 Jul 2014 13:46:01 +0800 Subject: xen/pciback: Fix error return code in xen_pcibk_attach() Fix to return -EFAULT from the error handling case instead of 0 when version mismatch with pcifront. Signed-off-by: Wei Yongjun Reviewed-by Jan Beulich Signed-off-by: David Vrabel --- drivers/xen/xen-pciback/xenbus.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/xen/xen-pciback') diff --git a/drivers/xen/xen-pciback/xenbus.c b/drivers/xen/xen-pciback/xenbus.c index 4a7e6e0a5f4c..c214daab4829 100644 --- a/drivers/xen/xen-pciback/xenbus.c +++ b/drivers/xen/xen-pciback/xenbus.c @@ -174,6 +174,7 @@ static int xen_pcibk_attach(struct xen_pcibk_device *pdev) "version mismatch (%s/%s) with pcifront - " "halting " DRV_NAME, magic, XEN_PCI_MAGIC); + err = -EFAULT; goto out; } -- cgit v1.2.1