aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/commands.py
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2025-01-16 16:30:43 +0900
committerMichael S. Tsirkin <mst@redhat.com>2025-02-20 18:23:19 -0500
commitbc82af6b0dcb0933e72640851fdd2594f822b23e (patch)
treef5873d81d3599c25d43ec9eade05e048839d1826 /scripts/qapi/commands.py
parent6f9a1a01433738811c9795dcf29f299c60835558 (diff)
downloadqemu-bc82af6b0dcb0933e72640851fdd2594f822b23e.zip
qemu-bc82af6b0dcb0933e72640851fdd2594f822b23e.tar.gz
qemu-bc82af6b0dcb0933e72640851fdd2594f822b23e.tar.bz2
hw/net: Fix NULL dereference with software RSS
When an eBPF program cannot be attached, virtio_net_load_ebpf() returns false, and virtio_net_device_realize() enters the code path to handle errors because of this, but it causes NULL dereference because no error is generated. Change virtio_net_load_ebpf() to return false only when a fatal error occurred. Fixes: b5900dff14e5 ("hw/net: report errors from failing to use eBPF RSS FDs") Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Message-Id: <20250116-software-v1-1-9e5161b534d8@daynix.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/qapi/commands.py')
0 files changed, 0 insertions, 0 deletions