Fix inactive timer list corruption on second S3 resume
authorTomasz Wroblewski <tomasz.wroblewski@citrix.com>
Wed, 28 Aug 2013 08:18:39 +0000 (10:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 28 Aug 2013 08:18:39 +0000 (10:18 +0200)
commit9e2c5938246546a5b3f698b7421640d85602b994
treeab0afc3e06e6c852efb46c77637de4c462e1ccaf
parentaa4b2aea4fa300341668971e50fbfd16b1ed925d
Fix inactive timer list corruption on second S3 resume

init_timer cannot be safely called multiple times on same timer since it does memset(0)
on the structure, erasing the auxiliary member used by linked list code. This breaks
inactive timer list in common/timer.c.

Moved resume_timer initialisation to ns16550_init_postirq, so it's only done once.

Signed-off-by: Tomasz Wroblewski <tomasz.wroblewski@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/drivers/char/ns16550.c