]> git.baikalelectronics.ru Git - kernel.git/commit
qed: add missing error test for DBG_STATUS_NO_MATCHING_FRAMING_MODE
authorColin Ian King <colin.king@canonical.com>
Wed, 24 Jun 2020 10:13:02 +0000 (11:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 21:57:24 +0000 (14:57 -0700)
commit89aa1a4ccc610a20e8cfcb93b0340d51ae03ac11
tree333589344d0140ac28ea58331de819fcae2ec249
parent73b8f87104b5b155e217d0c641d6b95570821e04
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: 467be77b707c ("qed: FW 8.42.2.0 debug features")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_debug.c