lguest: make sure cpu is initialized before accessing it
authorEugene Teo <eugeneteo@kernel.sg>
Sat, 9 Feb 2008 15:53:17 +0000 (23:53 +0800)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Mar 2008 22:35:56 +0000 (09:35 +1100)
If req is LHREQ_INITIALIZE, and the guest has been initialized before
(unlikely), it will attempt to access cpu->tsk even though cpu is not yet
initialized.

Signed-off-by: Eugene Teo <eugeneteo@kernel.sg>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found