diff options
| author | 2025-09-17 15:30:58 +0000 | |
|---|---|---|
| committer | 2025-09-18 07:47:17 -0700 | |
| commit | cca7b1cfd7b8a0eff2a3510c5e0f10efe8fa3758 (patch) | |
| tree | 51225189578de4c22c5a6ee5c3fdd7df9cef8eb0 /drivers/net/dsa/dsa_loop.c | |
| parent | net: clear sk->sk_ino in sk_set_socket(sk, NULL) (diff) | |
| download | wireguard-linux-cca7b1cfd7b8a0eff2a3510c5e0f10efe8fa3758.tar.xz wireguard-linux-cca7b1cfd7b8a0eff2a3510c5e0f10efe8fa3758.zip | |
net: liquidio: fix overflow in octeon_init_instr_queue()
The expression `(conf->instr_type == 64) << iq_no` can overflow because
`iq_no` may be as high as 64 (`CN23XX_MAX_RINGS_PER_PF`). Casting the
operand to `u64` ensures correct 64-bit arithmetic.
Fixes: f21fb3ed364b ("Add support of Cavium Liquidio ethernet adapters")
Signed-off-by: Alexey Nepomnyashih <sdl@nppct.ru>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions
