diff options
author | Andrew Melnychenko | 2020-03-04 15:20:58 +0100 |
---|---|---|
committer | Jason Wang | 2020-03-31 15:14:35 +0200 |
commit | f22a57ac09abdd5afd8a974b52c19eda9347cffd (patch) | |
tree | ab9df300fef1f1bc5eac40d5afe714bac67a3a9f /hw/net/ftgmac100.c | |
parent | hw/net/i82596.c: Avoid reading off end of buffer in i82596_receive() (diff) | |
download | qemu-f22a57ac09abdd5afd8a974b52c19eda9347cffd.tar.gz qemu-f22a57ac09abdd5afd8a974b52c19eda9347cffd.tar.xz qemu-f22a57ac09abdd5afd8a974b52c19eda9347cffd.zip |
Fixed integer overflow in e1000e
Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1737400
Fixed setting max_queue_num if there are no peers in
NICConf. qemu_new_nic() creates NICState with 1 NetClientState(index
0) without peers, set max_queue_num to 0 - It prevents undefined
behavior and possible crashes, especially during pcie hotplug.
Fixes: 6f3fbe4ed06 ("net: Introduce e1000e device emulation")
Signed-off-by: Andrew Melnychenko <andrew@daynix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Dmitry Fleytman <dmitry.fleytman@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/net/ftgmac100.c')
0 files changed, 0 insertions, 0 deletions