aboutsummaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2023-11-23 16:56:29 +0900
committerMichael S. Tsirkin <mst@redhat.com>2023-12-02 15:56:49 -0500
commit714a1415d7a69174e1640fcdd6eaae180fe438aa (patch)
treeb2625e83d0725669390a69acc7cc55d0727866b6 /host
parentf7856181849939ecb096dd1d0068b674fe2c69ff (diff)
downloadqemu-714a1415d7a69174e1640fcdd6eaae180fe438aa.zip
qemu-714a1415d7a69174e1640fcdd6eaae180fe438aa.tar.gz
qemu-714a1415d7a69174e1640fcdd6eaae180fe438aa.tar.bz2
pcie_sriov: Remove g_new assertion
g_new() aborts if the allocation fails so it returns NULL only if the requested allocation size is zero. register_vfs() makes such an allocation if NumVFs is zero so it should not assert that g_new() returns a non-NULL value. Fixes: 7c0fa8dff8 ("pcie: Add support for Single Root I/O Virtualization (SR/IOV)") Buglink: https://issues.redhat.com/browse/RHEL-17209 Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Message-Id: <20231123075630.12057-1-akihiko.odaki@daynix.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Cédric Le Goater <clg@redhat.com> Tested-by: Yanghang Liu<yanghliu@redhat.com> Reviewed-by: Cédric Le Goater &lt;<a href="mailto:clg@redhat.com" target="_blank">clg@redhat.com</a>&gt;<br> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'host')
0 files changed, 0 insertions, 0 deletions