From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:57242 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762406AbdAFMfA (ORCPT ); Fri, 6 Jan 2017 07:35:00 -0500 Subject: Patch "ssb: Fix error routine when fallback SPROM fails" has been added to the 4.4-stable tree To: Larry.Finger@lwfinger.net, gregkh@linuxfoundation.org, kvalo@codeaurora.org Cc: , From: Date: Fri, 06 Jan 2017 13:35:09 +0100 Message-ID: <1483706109230239@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 ssb: Fix error routine when fallback SPROM fails to the 4.4-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: ssb-fix-error-routine-when-fallback-sprom-fails.patch and it can be found in the queue-4.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From 8052d7245b6089992343c80b38b14dbbd8354651 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sat, 5 Nov 2016 14:08:57 -0500 Subject: ssb: Fix error routine when fallback SPROM fails From: Larry Finger commit 8052d7245b6089992343c80b38b14dbbd8354651 upstream. When there is a CRC error in the SPROM read from the device, the code attempts to handle a fallback SPROM. When this also fails, the driver returns zero rather than an error code. Signed-off-by: Larry Finger Signed-off-by: Kalle Valo Signed-off-by: Greg Kroah-Hartman --- drivers/ssb/pci.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/ssb/pci.c +++ b/drivers/ssb/pci.c @@ -909,6 +909,7 @@ static int ssb_pci_sprom_get(struct ssb_ if (err) { ssb_warn("WARNING: Using fallback SPROM failed (err %d)\n", err); + goto out_free; } else { ssb_dbg("Using SPROM revision %d provided by platform\n", sprom->revision); Patches currently in stable-queue which might be from Larry.Finger@lwfinger.net are queue-4.4/rtlwifi-fix-enter-exit-power_save.patch queue-4.4/ssb-fix-error-routine-when-fallback-sprom-fails.patch