Re: [PATCH v1 2/9] pci: add null-pointer check

2022-04-04 Thread Maxim Davydov
On 3/30/22 14:07, Vladimir Sementsov-Ogievskiy wrote: 29.03.2022 00:15, Maxim Davydov wrote: Call pci_bus_get_w64_range can fail with the segmentation fault. For example, this can happen during attempt to get pci-hole64-end immediately after initialization. So, immediately after initializa

Re: [PATCH v1 2/9] pci: add null-pointer check

2022-03-31 Thread Igor Mammedov
On Tue, 29 Mar 2022 00:15:32 +0300 Maxim Davydov wrote: > Call pci_bus_get_w64_range can fail with the segmentation fault. For > example, this can happen during attempt to get pci-hole64-end >" immediately after initialization" this too vague, pls provide a better description and is possible a

Re: [PATCH v1 2/9] pci: add null-pointer check

2022-03-30 Thread Vladimir Sementsov-Ogievskiy
29.03.2022 00:15, Maxim Davydov wrote: Call pci_bus_get_w64_range can fail with the segmentation fault. For example, this can happen during attempt to get pci-hole64-end immediately after initialization. So, immediately after initialization, h->bus is NULL? The significant bit is, is the value

[PATCH v1 2/9] pci: add null-pointer check

2022-03-28 Thread Maxim Davydov
Call pci_bus_get_w64_range can fail with the segmentation fault. For example, this can happen during attempt to get pci-hole64-end immediately after initialization. Signed-off-by: Maxim Davydov --- hw/pci-host/i440fx.c | 17 +++-- hw/pci-host/q35.c| 17 +++-- 2 files