sched: don't allow SCH_RemoveTimeout() with invalid non-zero ID
This commit is contained in:
parent
38910424f2
commit
8803ab27c6
1 changed files with 4 additions and 1 deletions
5
sched.c
5
sched.c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
Loading…
Reference in a new issue