kernel - Fix a 'vm_page_unhold: hold count < 0' panic in kern_execve()
commit7484bdd247ab74235adf702531f0d73ad4164424
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 9 Jun 2011 20:28:08 +0000 (9 13:28 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 9 Jun 2011 20:28:08 +0000 (9 13:28 -0700)
treefd6fd9f73281f61a0200aef9550328b683e23cb7
parent32e5dfe5ac0480396075b1fb91ff4ce20c11bef1
kernel - Fix a 'vm_page_unhold: hold count < 0' panic in kern_execve()

* imgp->firstpage is preloaded with lwbuf storage but we failed to NULL
  it out on error, causing the code to later attempt to release a bogus
  lwbuf.

* Fixes a hold count panic on random vm_page's.
sys/kern/kern_exec.c