Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ef76032 authored by Wei Yongjun's avatar Wei Yongjun Committed by David Vrabel
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by Jan Beulich <jbeulich@suse.com>
Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
parent 474b8fea
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -174,6 +174,7 @@ static int xen_pcibk_attach(struct xen_pcibk_device *pdev)
				 "version mismatch (%s/%s) with pcifront - "
				 "version mismatch (%s/%s) with pcifront - "
				 "halting " DRV_NAME,
				 "halting " DRV_NAME,
				 magic, XEN_PCI_MAGIC);
				 magic, XEN_PCI_MAGIC);
		err = -EFAULT;
		goto out;
		goto out;
	}
	}