libvirt/src/node_device
Michal Privoznik 1c7c759f5b src: Initialize stack allocated virPCIDeviceAddress variables
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>
2022-02-11 15:01:19 +01:00
..
meson.build meson: Add missing virt_install_dirs 2022-02-02 16:26:36 +01:00
node_device_driver.c node_device: Use automatic mutex management 2022-02-11 11:04:10 +01:00
node_device_driver.h nodedev: Implement virNodeDeviceIsPersistent()/IsActive() 2021-09-14 14:25:55 -05:00
node_device_udev.c src: Initialize stack allocated virPCIDeviceAddress variables 2022-02-11 15:01:19 +01:00
node_device_udev.h Revert "Also look for dmi information in /sys/class" 2020-10-02 13:56:46 +02:00
virtnodedevd.init.in configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtnodedevd.service.in systemd: Use correct man page name in modular daemon service files 2022-02-01 13:20:11 +01:00