1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00
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
..
2021-10-21 17:34:04 +01:00
2022-02-08 08:42:07 +01:00
2022-02-02 10:07:15 +01:00
2021-11-08 14:32:32 +01:00
2021-12-13 14:44:01 +01:00
2022-02-08 08:42:07 +01:00
2022-02-08 08:42:07 +01:00
2022-02-08 08:42:07 +01:00
2021-03-02 09:50:19 +01:00
2022-02-08 08:42:07 +01:00
2021-12-13 14:44:01 +01:00
2022-02-08 08:42:07 +01:00
2021-04-13 17:00:38 +02:00
2021-03-02 09:50:19 +01:00
2022-02-01 19:01:49 +01:00
2021-12-01 13:53:12 +01:00
2022-02-08 08:42:07 +01:00
2022-02-08 08:42:07 +01:00
2022-02-08 08:42:07 +01:00
2022-02-01 19:01:49 +01:00
2021-10-21 17:34:04 +01:00
2021-11-23 12:51:09 +01:00
2021-05-13 11:07:13 +01:00
2021-05-13 11:07:13 +01:00
2022-02-08 08:42:07 +01:00
2022-02-08 08:42:07 +01:00
2022-02-08 08:42:07 +01:00
2021-12-01 13:53:12 +01:00
2022-02-01 17:19:23 +01:00
2022-02-11 11:03:44 +01:00
2020-10-06 12:31:34 +02:00
2022-02-08 08:42:07 +01:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2020-12-04 16:24:19 +01:00
2020-12-04 16:24:19 +01:00