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)
commit5a447f09a8dffc0dd7569aec614ad3613a050098
treeab6800e9d0c88c038d82bb4d04722523e5262f08
parent87dc11220df266d7d4b6dc594b55d0729b92809d
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