diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2014-07-20 13:46:01 +0800 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2014-08-01 15:44:46 +0100 |
commit | 2ef760323a8a7ced5e1b2286c8df95226606a64e (patch) | |
tree | b7d61ee6e64c3321360d72ed944bda61efea23c2 /drivers/xen/xen-pciback | |
parent | 474b8feafb5013130d625898139b56fa54e6c9f2 (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>
Diffstat (limited to 'drivers/xen/xen-pciback')
-rw-r--r-- | drivers/xen/xen-pciback/xenbus.c | 1 |
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) "version mismatch (%s/%s) with pcifront - " "halting " DRV_NAME, magic, XEN_PCI_MAGIC); + err = -EFAULT; goto out; } |