]> 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)
commit218b42a85cbf657ed47f5d2a4a5ea30b663921a2
tree333589344d0140ac28ea58331de819fcae2ec249
parente82f62173520c0583d3ebb905c0d9053af67768e
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: ff1ebbebfb7f ("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