]> git.baikalelectronics.ru Git - kernel.git/commit
qed: fix ethtool register dump
authorManish Chopra <manishc@marvell.com>
Fri, 1 Apr 2022 18:53:04 +0000 (11:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Apr 2022 11:42:52 +0000 (12:42 +0100)
commit15b0b01fd8ec2244b606dfbc2d14b917b58c2263
treeb4f6d2e877ece5b7ba53cbb6c604439b977ca0e8
parent1d3369aeef10fa7fb1d938ace20aaac6cf141c58
qed: fix ethtool register dump

To fix a coverity complain, commit 8d32d003a2f9
("qed: Initialize debug string array") removed "sw-platform"
(one of the common global parameters) from the dump as this
was used in the dump with an uninitialized string, however
it did not reduce the number of common global parameters
which caused the incorrect (unable to parse) register dump

this patch fixes it with reducing NUM_COMMON_GLOBAL_PARAMS
bye one.

Cc: stable@vger.kernel.org
Cc: Tim Gardner <tim.gardner@canonical.com>
Cc: "David S. Miller" <davem@davemloft.net>
Fixes: 8d32d003a2f9 ("qed: Initialize debug string array")
Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com>
Signed-off-by: Alok Prasad <palok@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Manish Chopra <manishc@marvell.com>
Reviewed-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_debug.c