| commit | cd76e8fcbe1a340776ae61b4e182be3a45b26219 | [log] [tgz] |
|---|---|---|
| author | Akihiko Odaki <akihiko.odaki@daynix.com> | Tue Oct 08 15:51:03 2024 +0900 |
| committer | Jason Wang <jasowang@redhat.com> | Tue Oct 29 15:53:29 2024 +0800 |
| tree | 842e1b7df3a321c5b528a562f30b943af9a579f8 | |
| parent | e29bc931e1699a98959680f6776b48673825762b [diff] |
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>