diff options
| author | Borislav Petkov <[email protected]> | 2022-04-05 15:15:09 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-04-06 19:05:48 +0000 |
| commit | 8dd7cdb0f473407fdcd231c3eccef07371fd5e58 (patch) | |
| tree | 316725b948672c737d0a483962070cfa6f348131 /tools/testing/selftests/bpf/prog_tests/recursion.c | |
| parent | tcp: add accessors to read/set tp->snd_cwnd (diff) | |
| download | kernel-8dd7cdb0f473407fdcd231c3eccef07371fd5e58.tar.gz kernel-8dd7cdb0f473407fdcd231c3eccef07371fd5e58.zip | |
bnx2x: Fix undefined behavior due to shift overflowing the constant
Fix:
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c: In function ‘bnx2x_check_blocks_with_parity3’:
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:4917:4: error: case label does not reduce to an integer constant
case AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY:
^~~~
See https://lore.kernel.org/r/YkwQ6%[email protected] for the gory
details as to why it triggers with older gccs only.
Signed-off-by: Borislav Petkov <[email protected]>
Cc: Ariel Elior <[email protected]>
Cc: Sudarsana Kalluru <[email protected]>
Cc: Manish Chopra <[email protected]>
Cc: Paolo Abeni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions
