diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2016-02-22 09:50:11 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-02-23 11:13:18 +0100 |
commit | fa1298c2d623522eda7b4f1f721fcb935abb7360 (patch) | |
tree | 5138e06933f9ee89d68dbfb879dd04a716c55fe4 /qtest.c | |
parent | 5f77e06baa84323e5bbc96c2c7f4fe627078b210 (diff) |
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 'qtest.c')
0 files changed, 0 insertions, 0 deletions