Allow check_poison() to be called w/o cur_kthread
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 23 Sep 2015 20:04:30 +0000 (16:04 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 23 Sep 2015 20:46:28 +0000 (16:46 -0400)
commitb1cbbc28462ebb6e48386759ed6a842296dbf4f9
tree244d6b28246eb68798ec27649063da812f14213e
parent5e38727b09bce53dc2bdd406ef4a09e5b3a06e29
Allow check_poison() to be called w/o cur_kthread

If you called snprintf() or any other function that calls check_poison()
before smp init occurs, then we'd fail the assertion.  It's reasonable
to make those checks early on, so the assertion is now part of the 'if'.
kern/src/kthread.c