From: Igor Druzhinin Date: Thu, 5 Dec 2019 12:31:03 +0000 (+0100) Subject: passthrough: drop break statement following c/s cd7dedad820 X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~1092 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=79cf0989175c16994efc1f152eef07bb48cb98df;p=xen.git passthrough: drop break statement following c/s cd7dedad820 The locking responsibilities have changed and a premature break in this section now causes the following assertion: Assertion '!preempt_count()' failed at preempt.c:36 Reported-by: Sander Eikelenboom Suggested-by: Jan Beulich Signed-off-by: Igor Druzhinin Reviewed-by: Paul Durrant Reviewed-by: Jan Beulich --- diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index ced0c28e4f..c07a63981a 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -1705,7 +1705,6 @@ int iommu_do_pci_domctl( seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); ret = -EINVAL; } - break; } else if ( !ret ) ret = assign_device(d, seg, bus, devfn, flags);