[riot-commits] [RIOT-OS/RIOT] e17056: vtimer: fix crash on spurious hwtimer callback

Christian Mehlis mehlis at inf.fu-berlin.de
Fri Jul 18 21:15:16 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: e1705622b7cae88a0784b8dbbfc343c0e1abce4a
      https://github.com/RIOT-OS/RIOT/commit/e1705622b7cae88a0784b8dbbfc343c0e1abce4a
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-07-18 (Fri, 18 Jul 2014)

  Changed paths:
    M sys/vtimer/vtimer.c

  Log Message:
  -----------
  vtimer: fix crash on spurious hwtimer callback

It seems that there are corner cases where a vtimer was removed, but
still there comes a hwtimer callback. This is a bug somewhere in the
vtimer or hwtimer. If there still was a vtimer set, then the next one
gets called before its time. If there was no other vtimer scheduled,
then `timer->action(timer)` crashes.

This PR simply fixes the crash, but does not attempt to find the more
fundamental bug.


  Commit: eac161c7d1bd0f96d7f54b04c77e32f1eda967e0
      https://github.com/RIOT-OS/RIOT/commit/eac161c7d1bd0f96d7f54b04c77e32f1eda967e0
  Author: Christian Mehlis <mehlis at inf.fu-berlin.de>
  Date:   2014-07-18 (Fri, 18 Jul 2014)

  Changed paths:
    M sys/vtimer/vtimer.c

  Log Message:
  -----------
  Merge pull request #1446 from Kijewski/vtimer-spurious-hwtimer-call

vtimer: fix crash on spurious hwtimer callback


Compare: https://github.com/RIOT-OS/RIOT/compare/f757bc8bfbde...eac161c7d1bd


More information about the commits mailing list