lguest: fix spurious BUG_ON() on invalid guest stack.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 31 Mar 2009 03:55:23 +0000 (21:55 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 30 Mar 2009 11:25:23 +0000 (21:55 +1030)
Impact: fix crash on misbehaving guest

gpte_addr() contains a BUG_ON(), insisting that the present flag is
set.  We need to return before we call it if that isn't the case.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: stable@kernel.org

No differences found