aboutsummaryrefslogtreecommitdiff
path: root/qtest.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-02-22 09:50:11 +0100
committerGerd Hoffmann <kraxel@redhat.com>2016-02-23 11:13:18 +0100
commitfa1298c2d623522eda7b4f1f721fcb935abb7360 (patch)
tree5138e06933f9ee89d68dbfb879dd04a716c55fe4 /qtest.c
parent5f77e06baa84323e5bbc96c2c7f4fe627078b210 (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