kernel - Fix lwp_create() kernel corruption and panic in error path
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 Nov 2011 00:10:38 +0000 (16:10 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 Nov 2011 00:10:38 +0000 (16:10 -0800)
commit7b925b71fc4f59649cb4bdc91edd3e9410c02757
tree04070e9ad5b0d69565c06b412ae4bb3f3e4068ae
parentbc3396b8d6a56c64d72b08d59dcd520b018dd139
kernel - Fix lwp_create() kernel corruption and panic in error path

* We were forgetting to remove the lwp's thread from gd_tdallq, resulting
  in corruption of the queue.

Reported-by: swildner
sys/kern/kern_fork.c