From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:56046 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750941AbdKFJMp (ORCPT ); Mon, 6 Nov 2017 04:12:45 -0500 Subject: Patch "PCI/MSI: Return failure when msix_setup_entries() fails" has been added to the 4.9-stable tree To: christophe.jaillet@wanadoo.fr, alexander.levin@verizon.com, bhelgaas@google.com, gregkh@linuxfoundation.org Cc: , From: Date: Mon, 06 Nov 2017 10:11:45 +0100 Message-ID: <150995950510316@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: 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 know about it. >>From foo@baz Mon Nov 6 10:07:35 CET 2017 From: Christophe JAILLET Date: Sat, 7 Oct 2017 22:36:49 +0000 Subject: PCI/MSI: Return failure when msix_setup_entries() fails From: Christophe JAILLET [ 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. Fixes: e75eafb9b039 ("genirq/msi: Switch to new irq spreading infrastructure") Signed-off-by: Christophe JAILLET Signed-off-by: Bjorn Helgaas Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/pci/msi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -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 christophe.jaillet@wanadoo.fr are queue-4.9/pci-msi-return-failure-when-msix_setup_entries-fails.patch