aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2014-07-20 01:46:01 -0400
committerDavid Vrabel <david.vrabel@citrix.com>2014-08-01 10:44:46 -0400
commit2ef760323a8a7ced5e1b2286c8df95226606a64e (patch)
treeb7d61ee6e64c3321360d72ed944bda61efea23c2
parent474b8feafb5013130d625898139b56fa54e6c9f2 (diff)
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 <yongjun_wei@trendmicro.com.cn> Reviewed-by Jan Beulich <jbeulich@suse.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
-rw-r--r--drivers/xen/xen-pciback/xenbus.c1
1 files changed, 1 insertions, 0 deletions
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)
174 "version mismatch (%s/%s) with pcifront - " 174 "version mismatch (%s/%s) with pcifront - "
175 "halting " DRV_NAME, 175 "halting " DRV_NAME,
176 magic, XEN_PCI_MAGIC); 176 magic, XEN_PCI_MAGIC);
177 err = -EFAULT;
177 goto out; 178 goto out;
178 } 179 }
179 180