]> git.baikalelectronics.ru Git - kernel.git/commit
lguest: make check_gpte et. al return bool.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Apr 2013 04:40:39 +0000 (14:10 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Apr 2013 06:01:39 +0000 (15:31 +0930)
commit87e848f4c976bcab2b3b12a61ea26a985ab3c4f0
tree25464220a1fe74504cd5a8d0801913594e25539d
parent69bce8b002d76e2d86d65f288c5171faf48186bd
lguest: make check_gpte et. al return bool.

This is a bit neater: we can immediately return if a PTE/PGD/PMD entry
is invalid (which also kills the guest).  It means we don't risk using
invalid entries as we reshuffle the code.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/lguest/page_tables.c