kernel: check for error label stack underflow in nexterror()

This commit is contained in:
cinap_lenrek 2013-12-31 07:29:55 +01:00
parent 50bda3d522
commit 00ff4beaa7

View file

@ -1467,6 +1467,7 @@ error(char *err)
void
nexterror(void)
{
assert(up->nerrlab > 0);
gotolabel(&up->errlab[--up->nerrlab]);
}