Revision 7267c094 hw/pcie_aer.c
b/hw/pcie_aer.c | ||
---|---|---|
111 | 111 |
if (dev->exp.aer_log.log_max > PCIE_AER_LOG_MAX_LIMIT) { |
112 | 112 |
return -EINVAL; |
113 | 113 |
} |
114 |
dev->exp.aer_log.log = qemu_mallocz(sizeof dev->exp.aer_log.log[0] *
|
|
114 |
dev->exp.aer_log.log = g_malloc0(sizeof dev->exp.aer_log.log[0] *
|
|
115 | 115 |
dev->exp.aer_log.log_max); |
116 | 116 |
|
117 | 117 |
pci_set_long(dev->w1cmask + offset + PCI_ERR_UNCOR_STATUS, |
... | ... | |
165 | 165 |
|
166 | 166 |
void pcie_aer_exit(PCIDevice *dev) |
167 | 167 |
{ |
168 |
qemu_free(dev->exp.aer_log.log);
|
|
168 |
g_free(dev->exp.aer_log.log);
|
|
169 | 169 |
} |
170 | 170 |
|
171 | 171 |
static void pcie_aer_update_uncor_status(PCIDevice *dev) |
Also available in: Unified diff