diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2011-05-10 00:58:43 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2011-05-10 00:58:43 +0000 |
commit | fc0034f815003a4d4bc429f4134523af5c99353c (patch) | |
tree | 6445ffe966ae2715dc9e6d03af6b0324997a5bfc /share/lkm | |
parent | 15cd6a42ff78f176a0db39dfa7401274f1792bfc (diff) |
tweak timeout_del so it can tell the caller if it actually did remove a
timeout or not.
without this it is impossible to tell if the timeout was removed
or if it is just about to run. if the caller of timeout_del is about
to free some state the timeout itself might use, this could lead
to a use after free.
now if timeout_del returns 1, you know the timeout wont fire and
you can proceed with cleanup. how you cope with the timeout being
about to fire is up to the caller of timeout_del.
discussed with drinking art and art, and most of k2k11
ok miod@
Diffstat (limited to 'share/lkm')
0 files changed, 0 insertions, 0 deletions