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-11-04 10:55:28 +01:00
2021-11-04 10:55:28 +01:00
2022-02-08 08:42:07 +01:00
2021-08-23 13:59:28 +02:00
2021-08-23 16:59:23 +02:00
2021-04-13 17:00:38 +02:00
2022-02-08 12:38:01 +01:00
2022-01-21 16:42:14 +01:00
2021-11-16 16:40:33 +01:00
2021-10-12 10:26:04 +02:00
2022-02-11 15:01:19 +01:00
2021-10-20 16:53:01 +02:00
2021-11-19 12:38:35 +01:00
2021-04-13 17:00:38 +02:00
2021-12-14 16:04:17 +00:00
2021-12-14 16:04:17 +00:00
2022-02-08 08:42:07 +01:00
2022-02-03 10:59:03 +00:00
2021-10-01 11:04:47 +02:00
2021-10-01 11:04:47 +02:00
2021-07-19 09:39:15 +02:00
2021-04-13 17:00:38 +02:00
2022-01-27 13:27:54 +01:00
2021-09-09 10:17:28 +02:00
2022-01-14 15:38:50 +01:00
2021-11-02 10:52:18 +01:00
2021-01-22 11:10:27 +01:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-11-22 12:39:59 +01:00
2021-04-13 17:00:38 +02:00
2022-02-08 08:42:07 +01:00
2022-01-21 16:42:13 +01:00
2021-11-08 14:32:32 +01:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2022-02-11 15:01:19 +01:00
2021-10-21 17:34:04 +01:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2022-02-08 08:42:07 +01:00
2021-06-15 10:41:22 +02:00
2022-02-08 08:42:07 +01:00
2021-08-20 15:38:53 +02:00
2021-12-01 13:53:12 +01:00
2021-04-13 17:00:38 +02:00
2021-08-04 10:39:27 +02:00
2021-07-23 11:27:05 +02:00
2021-04-13 17:00:38 +02:00
2021-08-06 08:53:26 +02:00
2021-04-13 17:00:38 +02:00
2021-08-20 15:41:22 +02:00
2021-08-20 15:41:22 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2022-02-08 08:42:07 +01:00
2022-01-14 18:11:58 +01:00
2021-05-20 11:52:44 +02:00
2021-05-20 11:52:41 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2022-01-21 16:42:13 +01:00
2021-08-25 09:57:51 +02:00
2021-10-25 14:06:15 +02:00
2021-10-25 14:06:15 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2022-02-08 08:42:07 +01:00
2022-01-21 16:42:13 +01:00
2022-02-01 17:20:02 +01:00
2021-04-13 17:00:38 +02:00
2021-07-21 13:30:14 +02:00
2021-04-13 17:00:38 +02:00
2021-04-13 17:00:38 +02:00
2022-01-14 18:05:29 +01:00
2022-01-12 16:00:18 +01:00
2021-12-03 17:19:35 +01:00
2021-11-24 13:12:20 +01:00
2022-01-14 18:11:58 +01:00
2022-01-14 18:11:58 +01:00
2022-02-08 08:42:07 +01:00
2021-11-24 13:12:20 +01:00
2022-02-08 08:42:07 +01:00
2021-12-15 15:28:17 +01:00
2022-01-21 16:42:14 +01:00
2022-01-21 16:42:14 +01:00
2022-02-08 08:42:07 +01:00
2021-09-14 14:24:00 -05:00
2021-12-01 13:53:12 +01:00
2021-09-06 17:08:59 +02:00
2022-02-08 08:42:07 +01:00
2021-04-13 17:00:38 +02:00
2021-12-01 13:53:12 +01:00
2021-04-13 17:00:38 +02:00
2021-10-25 12:48:46 +02:00
2021-04-13 17:00:38 +02:00
2021-11-22 12:39:59 +01:00
2021-04-13 17:00:38 +02:00
2022-02-08 08:42:07 +01:00
2021-11-24 13:12:20 +01:00
2022-02-08 08:42:07 +01:00
2021-11-24 13:12:20 +01:00