]> Git Repo - linux.git/commit
octeontx2-pf: Fix otx2_get_fecparam()
authorDan Carpenter <[email protected]>
Wed, 17 Feb 2021 07:41:39 +0000 (10:41 +0300)
committerDavid S. Miller <[email protected]>
Wed, 17 Feb 2021 22:33:22 +0000 (14:33 -0800)
commit38b5133ad607ecdcc8d24906d1ac9cc8df41acd5
treed96a1e85503a53efc5ed4c7116ea72c434019557
parentc77662605d8d715062f15bbf567b5a61082b4967
octeontx2-pf: Fix otx2_get_fecparam()

Static checkers complained about an off by one read overflow in
otx2_get_fecparam() and we applied two conflicting fixes for it.

Correct: b0aae0bde26f ("octeontx2: Fix condition.")
  Wrong: 93efb0c65683 ("octeontx2-pf: Fix out-of-bounds read in otx2_get_fecparam()")

Revert the incorrect fix.

Fixes: 93efb0c65683 ("octeontx2-pf: Fix out-of-bounds read in otx2_get_fecparam()")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c
This page took 0.046245 seconds and 4 git commands to generate.