[patch 5/5] staging: ozwpan: Fix hrtimer wreckage
Greg Kroah-Hartman
gregkh at linuxfoundation.org
Mon Apr 13 21:25:52 UTC 2015
On Mon, Apr 13, 2015 at 09:02:25PM -0000, Thomas Gleixner wrote:
> 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 at linutronix.de>
> Cc: Shigekatsu Tateno <shigekatsu.tateno at atmel.com>
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Cc: devel at driverdev.osuosl.org
> ---
> drivers/staging/ozwpan/ozproto.c | 17 ++++-------------
> 1 file changed, 4 insertions(+), 13 deletions(-)
Acked-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
More information about the devel
mailing list