diff options
| author | Gerd Hoffmann | 2016-02-22 09:50:11 +0100 |
|---|---|---|
| committer | Gerd Hoffmann | 2016-02-23 11:13:18 +0100 |
| commit | fa1298c2d623522eda7b4f1f721fcb935abb7360 (patch) | |
| tree | 5138e06933f9ee89d68dbfb879dd04a716c55fe4 /include/exec/memory-internal.h | |
| parent | usb: add pid check at the first of uhci_handle_td() (diff) | |
| download | qemu-fa1298c2d623522eda7b4f1f721fcb935abb7360.tar.gz qemu-fa1298c2d623522eda7b4f1f721fcb935abb7360.tar.xz qemu-fa1298c2d623522eda7b4f1f721fcb935abb7360.zip | |
ohci: allocate timer only once.
Allocate timer once, at init time, instead of allocating/freeing
it all the time when starting/stopping the bus. Simplifies the
code, also fixes bugs (memory leak) due to missing checks whenever
the time is already allocated or not.
Cc: Prasad J Pandit <pjp@fedoraproject.org>
Reported-by: Zuozhi Fzz <zuozhi.fzz@alibaba-inc.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/exec/memory-internal.h')
0 files changed, 0 insertions, 0 deletions
