kernel - Fix missing token release on I/O error during exec
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Dec 2011 05:36:57 +0000 (21:36 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Dec 2011 05:36:57 +0000 (21:36 -0800)
commit471bd2903fec832418cd0a632d1e3eff272338c9
treeb672fa7cd9fdf22059a9b4ca85b57d2fb8abf413
parent98515ee72112f21b7c3e06a748c8c3909acf9712
kernel - Fix missing token release on I/O error during exec

* If an EIO occurs while exec is mapping pages from the binary we need
  to drop the vm_object we are holding before returning.

* Fixes panic when the system runs out of memory and no swap is present.
sys/kern/kern_exec.c