Jan Beulich
2012-Apr-02 14:22 UTC
[PATCH] xen/pcifront: avoid pci_frontend_enable_msix() falsely returning success
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> --- drivers/pci/xen-pcifront.c | 1 + 1 file changed, 1 insertion(+) --- 3.4-rc1/drivers/pci/xen-pcifront.c +++ 3.4-rc1-xen-pcifront-enable-msix-retval/drivers/pci/xen-pcifront.c @@ -290,6 +290,7 @@ static int pci_frontend_enable_msix(stru } 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);