Akihiko Odaki cd76e8fcbe virtio-net: Avoid indirection_table_mask overflow
We computes indirections_len by adding 1 to indirection_table_mask, but
it may overflow indirection_table_mask is UINT16_MAX. Check if
indirection_table_mask is small enough before adding 1.

Fixes: 590790297c0d ("virtio-net: implement RSS configuration command")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2024-10-29 15:53:29 +08:00
..
2024-03-12 19:28:32 +08:00
2024-06-04 15:14:25 +08:00
2023-11-13 15:33:37 +08:00
2024-03-12 19:28:31 +08:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-06-04 15:14:25 +08:00
2024-03-12 19:28:32 +08:00
2023-12-30 07:38:06 +11:00