diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/9pfs/coth.h | 1 | ||||
-rw-r--r-- | hw/char/ipoctal232.c | 2 | ||||
-rw-r--r-- | hw/core/loader.c | 6 | ||||
-rw-r--r-- | hw/i2c/imx_i2c.c | 2 | ||||
-rw-r--r-- | hw/ipack/ipack.c | 2 | ||||
-rw-r--r-- | hw/ipack/tpci200.c | 2 | ||||
-rw-r--r-- | hw/net/vmxnet3.c | 4 | ||||
-rw-r--r-- | hw/pci/msi.c | 2 | ||||
-rw-r--r-- | hw/pci/pci_bridge.c | 2 | ||||
-rw-r--r-- | hw/s390x/ipl.c | 2 | ||||
-rw-r--r-- | hw/scsi/spapr_vscsi.c | 2 | ||||
-rw-r--r-- | hw/scsi/vmw_pvscsi.c | 2 | ||||
-rw-r--r-- | hw/timer/a9gtimer.c | 2 | ||||
-rw-r--r-- | hw/timer/aspeed_timer.c | 4 |
14 files changed, 20 insertions, 15 deletions
diff --git a/hw/9pfs/coth.h b/hw/9pfs/coth.h index 209fc6a9af..a911cbb165 100644 --- a/hw/9pfs/coth.h +++ b/hw/9pfs/coth.h @@ -47,7 +47,6 @@ } while (0) extern void co_run_in_worker_bh(void *); -extern int v9fs_init_worker_threads(void); extern int v9fs_co_readlink(V9fsPDU *, V9fsPath *, V9fsString *); extern int v9fs_co_readdir_r(V9fsPDU *, V9fsFidState *, struct dirent *, struct dirent **result); diff --git a/hw/char/ipoctal232.c b/hw/char/ipoctal232.c index bc0ae4980e..9ead32af60 100644 --- a/hw/char/ipoctal232.c +++ b/hw/char/ipoctal232.c @@ -2,7 +2,7 @@ * QEMU GE IP-Octal 232 IndustryPack emulation * * Copyright (C) 2012 Igalia, S.L. - * Author: Alberto Garcia <agarcia@igalia.com> + * Author: Alberto Garcia <berto@igalia.com> * * This code is licensed under the GNU GPL v2 or (at your option) any * later version. diff --git a/hw/core/loader.c b/hw/core/loader.c index c0499571c3..53e0e41554 100644 --- a/hw/core/loader.c +++ b/hw/core/loader.c @@ -914,10 +914,16 @@ int rom_add_file(const char *file, const char *fw_dir, err: if (fd != -1) close(fd); + g_free(rom->data); g_free(rom->path); g_free(rom->name); + if (fw_dir) { + g_free(rom->fw_dir); + g_free(rom->fw_file); + } g_free(rom); + return -1; } diff --git a/hw/i2c/imx_i2c.c b/hw/i2c/imx_i2c.c index a01e43ebeb..e19d4fa745 100644 --- a/hw/i2c/imx_i2c.c +++ b/hw/i2c/imx_i2c.c @@ -247,7 +247,7 @@ static void imx_i2c_write(void *opaque, hwaddr offset, if (s->address == ADDR_RESET) { if (i2c_start_transfer(s->bus, extract32(s->i2dr_write, 1, 7), extract32(s->i2dr_write, 0, 1))) { - /* if non zero is returned, the adress is not valid */ + /* if non zero is returned, the address is not valid */ s->i2sr |= I2SR_RXAK; } else { s->address = s->i2dr_write; diff --git a/hw/ipack/ipack.c b/hw/ipack/ipack.c index 5f99ed9a79..6021e6d135 100644 --- a/hw/ipack/ipack.c +++ b/hw/ipack/ipack.c @@ -2,7 +2,7 @@ * QEMU IndustryPack emulation * * Copyright (C) 2012 Igalia, S.L. - * Author: Alberto Garcia <agarcia@igalia.com> + * Author: Alberto Garcia <berto@igalia.com> * * This code is licensed under the GNU GPL v2 or (at your option) any * later version. diff --git a/hw/ipack/tpci200.c b/hw/ipack/tpci200.c index fdda6f4147..4dfa6b33f3 100644 --- a/hw/ipack/tpci200.c +++ b/hw/ipack/tpci200.c @@ -2,7 +2,7 @@ * QEMU TEWS TPCI200 IndustryPack carrier emulation * * Copyright (C) 2012 Igalia, S.L. - * Author: Alberto Garcia <agarcia@igalia.com> + * Author: Alberto Garcia <berto@igalia.com> * * This code is licensed under the GNU GPL v2 or (at your option) any * later version. diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c index 093a71e12e..20f26b7d89 100644 --- a/hw/net/vmxnet3.c +++ b/hw/net/vmxnet3.c @@ -37,7 +37,7 @@ #define VMXNET3_MSIX_BAR_SIZE 0x2000 #define MIN_BUF_SIZE 60 -/* Compatability flags for migration */ +/* Compatibility flags for migration */ #define VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS_BIT 0 #define VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS \ (1 << VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS_BIT) @@ -341,7 +341,7 @@ typedef struct { uint32_t mcast_list_len; uint32_t mcast_list_buff_size; /* needed for live migration. */ - /* Compatability flags for migration */ + /* Compatibility flags for migration */ uint32_t compat_flags; } VMXNET3State; diff --git a/hw/pci/msi.c b/hw/pci/msi.c index e0e64c2d9e..a87ef4d752 100644 --- a/hw/pci/msi.c +++ b/hw/pci/msi.c @@ -40,7 +40,7 @@ * * Setting this flag to false will remove MSI/MSI-X capability from all devices. * - * It is preferrable for controllers to set this to true (non-broken) even if + * It is preferable for controllers to set this to true (non-broken) even if * they do not actually support MSI/MSI-X: guests normally probe the controller * type and do not attempt to enable MSI/MSI-X with interrupt controllers not * supporting such, so removing the capability is not required, and diff --git a/hw/pci/pci_bridge.c b/hw/pci/pci_bridge.c index 3cf30bd334..5118ef404f 100644 --- a/hw/pci/pci_bridge.c +++ b/hw/pci/pci_bridge.c @@ -116,7 +116,7 @@ pcibus_t pci_bridge_get_base(const PCIDevice *bridge, uint8_t type) return base; } -/* accessor funciton to get bridge filtering limit */ +/* accessor function to get bridge filtering limit */ pcibus_t pci_bridge_get_limit(const PCIDevice *bridge, uint8_t type) { pcibus_t limit; diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c index 5786b5e451..e6bf7cf7c0 100644 --- a/hw/s390x/ipl.c +++ b/hw/s390x/ipl.c @@ -129,7 +129,7 @@ static void s390_ipl_realize(DeviceState *dev, Error **errp) /* Adjust ELF start address to final location */ ipl->bios_start_addr += fwbase; } else { - /* Try to load non-ELF file (e.g. s390-ccw.img) */ + /* Try to load non-ELF file */ bios_size = load_image_targphys(bios_filename, ZIPL_IMAGE_START, 4096); ipl->bios_start_addr = ZIPL_IMAGE_START; diff --git a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c index b00edf7fd4..8fbd50f660 100644 --- a/hw/scsi/spapr_vscsi.c +++ b/hw/scsi/spapr_vscsi.c @@ -698,7 +698,7 @@ static void vscsi_inquiry_no_target(VSCSIState *s, vscsi_req *req) uint8_t resp_data[36]; int rc, len, alen; - /* We dont do EVPD. Also check that page_code is 0 */ + /* We don't do EVPD. Also check that page_code is 0 */ if ((cdb[1] & 0x01) || cdb[2] != 0) { /* Send INVALID FIELD IN CDB */ vscsi_makeup_sense(s, req, ILLEGAL_REQUEST, 0x24, 0); diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c index e690b4ec08..f67b5bf7d3 100644 --- a/hw/scsi/vmw_pvscsi.c +++ b/hw/scsi/vmw_pvscsi.c @@ -63,7 +63,7 @@ typedef struct PVSCSIClass { #define PVSCSI_DEVICE_GET_CLASS(obj) \ OBJECT_GET_CLASS(PVSCSIClass, (obj), TYPE_PVSCSI) -/* Compatability flags for migration */ +/* Compatibility flags for migration */ #define PVSCSI_COMPAT_OLD_PCI_CONFIGURATION_BIT 0 #define PVSCSI_COMPAT_OLD_PCI_CONFIGURATION \ (1 << PVSCSI_COMPAT_OLD_PCI_CONFIGURATION_BIT) diff --git a/hw/timer/a9gtimer.c b/hw/timer/a9gtimer.c index afe577c76a..772f85f5fd 100644 --- a/hw/timer/a9gtimer.c +++ b/hw/timer/a9gtimer.c @@ -184,7 +184,7 @@ static void a9_gtimer_write(void *opaque, hwaddr addr, uint64_t value, case R_COUNTER_LO: /* * Keep it simple - ARM docco explicitly says to disable timer before - * modding it, so dont bother trying to do all the difficult on the fly + * modding it, so don't bother trying to do all the difficult on the fly * timer modifications - (if they even work in real hardware??). */ if (s->control & R_CONTROL_TIMER_ENABLE) { diff --git a/hw/timer/aspeed_timer.c b/hw/timer/aspeed_timer.c index 51e8303cda..ebec35935d 100644 --- a/hw/timer/aspeed_timer.c +++ b/hw/timer/aspeed_timer.c @@ -187,7 +187,7 @@ static void aspeed_timer_set_value(AspeedTimerCtrlState *s, int timer, int reg, } /* Control register operations are broken out into helpers that can be - * explictly called on aspeed_timer_reset(), but also from + * explicitly called on aspeed_timer_reset(), but also from * aspeed_timer_ctrl_op(). */ @@ -380,7 +380,7 @@ static void aspeed_timer_reset(DeviceState *dev) for (i = 0; i < ASPEED_TIMER_NR_TIMERS; i++) { AspeedTimer *t = &s->timers[i]; - /* Explictly call helpers to avoid any conditional behaviour through + /* Explicitly call helpers to avoid any conditional behaviour through * aspeed_timer_set_ctrl(). */ aspeed_timer_ctrl_enable(t, false); |