]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ozwpan: Fix hrtimer wreckage
authorThomas Gleixner <tglx@linutronix.de>
Mon, 13 Apr 2015 21:02:25 +0000 (21:02 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 20 Jul 2015 09:37:46 +0000 (11:37 +0200)
commit0d484e8848148e866593c0e828992c044140c188
treeab6800e9d0c88c038d82bb4d04722523e5262f08
parentbcc5058f6b86a10e3a96613303a0355fcc115ef8
staging: ozwpan: Fix hrtimer wreckage

oz_timer_add() modifies the expiry value of an active timer, which
results in data corruption.

Use hrtimer_start() and remove the silly conditional.

While at it use the proper helper function to convert milliseconds to
ktime.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Shigekatsu Tateno <shigekatsu.tateno@atmel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: devel@driverdev.osuosl.org
Link: http://lkml.kernel.org/r/20150413210035.357448657@linutronix.de
drivers/staging/ozwpan/ozproto.c