Patch "qed: add missing error test for DBG_STATUS_NO_MATCHING_FRAMING_MODE" has been added to the 5.7-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    qed: add missing error test for DBG_STATUS_NO_MATCHING_FRAMING_MODE

to the 5.7-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:
     qed-add-missing-error-test-for-dbg_status_no_matchin.patch
and it can be found in the queue-5.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 54c3476d0863cf4859636830dfaa1a8d41ee8c42
Author: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Date:   Wed Jun 24 11:13:02 2020 +0100

    qed: add missing error test for DBG_STATUS_NO_MATCHING_FRAMING_MODE
    
    [ Upstream commit a51243860893615b457b149da1ef5df0a4f1ffc2 ]
    
    The error DBG_STATUS_NO_MATCHING_FRAMING_MODE was added to the enum
    enum dbg_status however there is a missing corresponding entry for
    this in the array s_status_str. This causes an out-of-bounds read when
    indexing into the last entry of s_status_str.  Fix this by adding in
    the missing entry.
    
    Addresses-Coverity: ("Out-of-bounds read").
    Fixes: 2d22bc8354b1 ("qed: FW 8.42.2.0 debug features")
    Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/qlogic/qed/qed_debug.c b/drivers/net/ethernet/qlogic/qed/qed_debug.c
index f4eebaabb6d0d..3e56b6056b477 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_debug.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_debug.c
@@ -5568,7 +5568,8 @@ static const char * const s_status_str[] = {
 
 	/* DBG_STATUS_INVALID_FILTER_TRIGGER_DWORDS */
 	"The filter/trigger constraint dword offsets are not enabled for recording",
-
+	/* DBG_STATUS_NO_MATCHING_FRAMING_MODE */
+	"No matching framing mode",
 
 	/* DBG_STATUS_VFC_READ_ERROR */
 	"Error reading from VFC",



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux