sched: don't allow SCH_RemoveTimeout() with invalid non-zero ID

This commit is contained in:
Miroslav Lichvar 2015-11-10 14:29:52 +01:00
parent 38910424f2
commit 8803ab27c6

View file

@ -459,9 +459,12 @@ SCH_RemoveTimeout(SCH_TimeoutID id)
/* Release memory back to the operating system */ /* Release memory back to the operating system */
release_tqe(ptr); release_tqe(ptr);
break; return;
} }
} }
/* Catch calls with invalid non-zero ID */
assert(0);
} }
/* ================================================== */ /* ================================================== */