summaryrefslogtreecommitdiff
path: root/include/linux/errseq.h
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2019-04-08 17:39:54 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-17 08:38:42 +0200
commitd2d055a554036b0240f296743942b8111fd4ce97 (patch)
tree64f10510c7f09bfb9d4dc09b736bbb8719b18251 /include/linux/errseq.h
parenta333fcc410753b51742f3cb01ad123d4988958fb (diff)
bnxt_en: Improve RX consumer index validity check.
[ Upstream commit a1b0e4e684e9c300b9e759b46cb7a0147e61ddff ] There is logic to check that the RX/TPA consumer index is the expected index to work around a hardware problem. However, the potentially bad consumer index is first used to index into an array to reference an entry. This can potentially crash if the bad consumer index is beyond legal range. Improve the logic to use the consumer index for dereferencing after the validity check and log an error message. Fixes: fa7e28127a5a ("bnxt_en: Add workaround to detect bad opaque in rx completion (part 2)") Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/errseq.h')
0 files changed, 0 insertions, 0 deletions