diff options
author | 2024-10-10 16:45:19 +0100 | |
---|---|---|
committer | 2024-10-15 13:32:22 +0200 | |
commit | 637c4f6fe40befa04f19c38b5d15429cbb9191d9 (patch) | |
tree | aaa45d1281bd8ea9ecfb80f1847e4df72378d473 /drivers/net/macsec.c | |
parent | net: stmmac: dwmac-tegra: Fix link bring-up sequence (diff) | |
download | wireguard-linux-637c4f6fe40befa04f19c38b5d15429cbb9191d9.tar.xz wireguard-linux-637c4f6fe40befa04f19c38b5d15429cbb9191d9.zip |
octeontx2-af: Fix potential integer overflows on integer shifts
The left shift int 32 bit integer constants 1 is evaluated using 32 bit
arithmetic and then assigned to a 64 bit unsigned integer. In the case
where the shift is 32 or more this can lead to an overflow. Avoid this
by shifting using the BIT_ULL macro instead.
Fixes: 019aba04f08c ("octeontx2-af: Modify SMQ flush sequence to drop packets")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20241010154519.768785-1-colin.i.king@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/macsec.c')
0 files changed, 0 insertions, 0 deletions