]> git.baikalelectronics.ru Git - kernel.git/commit
xen: execve's error paths don't pin the mm before unpinning
authorJeremy Fitzhardinge <jeremy@goop.org>
Tue, 25 Sep 2007 18:50:00 +0000 (11:50 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 26 Sep 2007 16:27:14 +0000 (09:27 -0700)
commit5cea1e7adedc15521d82774e1a8575932823dba4
tree69f434d181767ed9661bf96669abbdcfcdfcdf95
parentc4fba89d6822da05be7c248c28c84544da186745
xen: execve's error paths don't pin the mm before unpinning

execve's error paths don't activate (and therefore pin) the mm before
calling exit_mmap to free it up, so don't try to unpin unless it is
actually pinned.  This prevents a BUG_ON from triggering.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: Christian Ostheimer <osth@freesurf.ch>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/xen/mmu.c