diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2014-07-20 07:46:01 +0200 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2014-08-01 16:44:46 +0200 |
commit | 2ef760323a8a7ced5e1b2286c8df95226606a64e (patch) | |
tree | b7d61ee6e64c3321360d72ed944bda61efea23c2 /drivers/xen/xen-pciback/xenbus.c | |
parent | xen/events: drop negativity check of unsigned parameter (diff) | |
download | linux-2ef760323a8a7ced5e1b2286c8df95226606a64e.tar.xz linux-2ef760323a8a7ced5e1b2286c8df95226606a64e.zip |
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/xenbus.c')
-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; } |