Patch "PCI/MSI: Return failure when msix_setup_entries() fails" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
PCI/MSI: Return failure when msix_setup_entries() fails
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
pci-msi-return-failure-when-msix_setup_entries-fails.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Mon Nov 6 10:07:35 CET 2017
From: Christophe JAILLET <[email protected]>
Date: Sat, 7 Oct 2017 22:36:49 +0000
Subject: PCI/MSI: Return failure when msix_setup_entries() fails
From: Christophe JAILLET <[email protected]>
[ Upstream commit 3adfb572f2978a980b250a9e1a56f84f3a031001 ]
If alloc_msi_entry() fails, we free resources and set ret = -ENOMEM.
However, msix_setup_entries() returns 0 unconditionally. Return the error code instead.
--- drivers/pci/msi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/msi.c +1 -1
@@ -730,7 +730,7 @@ static int msix_setup_entries(struct pci ret =0 ; out:kfree (masks); -return 0 ; +return ret; } static void msix_program_entries(struct pci_dev *dev,
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/pci-msi-return-failure-when-msix_setup_entries-fails.patch