]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
xen/pcifront: avoid pci_frontend_enable_msix() falsely returning success
authorJan Beulich <JBeulich@suse.com>
Mon, 2 Apr 2012 14:22:39 +0000 (15:22 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 6 Apr 2012 16:16:02 +0000 (12:16 -0400)
The original XenoLinux code has always had things this way, and for
compatibility reasons (in particular with a subsequent pciback
adjustment) upstream Linux should behave the same way (allowing for two
distinct error indications to be returned by the backend).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/pci/xen-pcifront.c

index 7cf3d2fcf56a9369209395304494d4b7699d5f6d..c18fab289ad56a57d974a5567bf03a4b4733dec8 100644 (file)
@@ -290,6 +290,7 @@ static int pci_frontend_enable_msix(struct pci_dev *dev,
                } else {
                        printk(KERN_DEBUG "enable msix get value %x\n",
                                op.value);
+                       err = op.value;
                }
        } else {
                dev_err(&dev->dev, "enable msix get err %x\n", err);