]> git.ipfire.org Git - thirdparty/kernel/stable.git/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)
committerJiri Slaby <jslaby@suse.cz>
Sat, 6 Dec 2014 14:14:32 +0000 (15:14 +0100)
commit00df39d248ac037f06dfa97c59dc2a7da8b58728
tree85262728cf879b68c9dbf30cbc83d813421ec271
parentc5ddd2b1c74f81410950298b964bbb9c588f5aa6
PCI/MSI: Return msix_capability_init() failure if populate_msi_sysfs() fails

commit 2adc7907bac2c72535894732c4b41f9210f9e577 upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/pci/msi.c