diff options
| author | Colin Ian King <[email protected]> | 2020-06-24 10:13:02 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-06-24 21:57:24 +0000 |
| commit | a51243860893615b457b149da1ef5df0a4f1ffc2 (patch) | |
| tree | 333589344d0140ac28ea58331de819fcae2ec249 /drivers/net/ethernet/qlogic/qed/qed_debug.c | |
| parent | Merge branch 'net-phy-call-phy_disable_interrupts-in-phy_init_hw' (diff) | |
| download | kernel-a51243860893615b457b149da1ef5df0a4f1ffc2.tar.gz kernel-a51243860893615b457b149da1ef5df0a4f1ffc2.zip | |
qed: add missing error test for DBG_STATUS_NO_MATCHING_FRAMING_MODE
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_debug.c')
| -rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_debug.c b/drivers/net/ethernet/qlogic/qed/qed_debug.c index 57a0dab88431..81e8fbe4a05b 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", |
