]> Pileus Git - ~andy/linux/commit
PCI/MSI: Return msix_capability_init() failure if populate_msi_sysfs() fails
authorAlexander Gordeev <agordeev@redhat.com>
Mon, 16 Dec 2013 08:34:56 +0000 (09:34 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 20 Dec 2013 16:45:05 +0000 (09:45 -0700)
commit2adc7907bac2c72535894732c4b41f9210f9e577
tree7ee571f9836025ee4fa63e1df0de1d6795dd4fc6
parent57b7cb024422bbe85366ef28f5e192997bd16943
PCI/MSI: Return msix_capability_init() failure if populate_msi_sysfs() fails

If populate_msi_sysfs() function failed msix_capability_init() must return
the error code, but it returns the success instead.  This update fixes the
described misbehaviour.

Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Tejun Heo <tj@kernel.org>
drivers/pci/msi.c