From: Wei Yongjun Date: Sun, 20 Jul 2014 05:46:01 +0000 (+0800) Subject: xen/pciback: Fix error return code in xen_pcibk_attach() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2ef760323a8a7ced5e1b2286c8df95226606a64e;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 --- 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; }