diff options
author | Jason Wang <jasowang@redhat.com> | 2015-04-23 14:21:39 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-04-27 21:02:40 +0200 |
commit | bcfa4d60144fb879f0ffef0a6d174faa37b2df82 (patch) | |
tree | 432fac33260ae4cf9a9f39044188b7946aecc215 /linux-headers/asm-x86 | |
parent | eaed483c1b3db1ac312116fca5d20c45b4b418b2 (diff) | |
download | qemu-bcfa4d60144fb879f0ffef0a6d174faa37b2df82.zip |
monitor: check return value of qemu_find_net_clients_except()
qemu_find_net_clients_except() may return a value which is greater
than the size of array we provided. So we should check this value
before using it, otherwise this may cause unexpected memory access.
This patch fixes the net related command completion when we have a
virtio-net nic with more than 255 queues.
Cc: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'linux-headers/asm-x86')
0 files changed, 0 insertions, 0 deletions