mirror of https://gitee.com/openkylin/libvirt.git
![]() There are few places where a virPCIDeviceAddress typed variable is allocated on the stack but it's not initialized. This can lead to random values of its members which in turn can lead to a random behaviour. Generated with help of the following spatch: @@ identifier I; @@ - virPCIDeviceAddress I; + virPCIDeviceAddress I = { 0 }; And then fixing bhyveAssignDevicePCISlots() which does declare the variable and then explicitly zero it by calling memset() only to set a specific member afterwards. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com> |
||
---|---|---|
.. | ||
meson.build | ||
node_device_driver.c | ||
node_device_driver.h | ||
node_device_udev.c | ||
node_device_udev.h | ||
virtnodedevd.init.in | ||
virtnodedevd.service.in |