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)
commitf73d1e6ca6985b43a1871467463cba632fbc624d
tree84b01e87f41bf960c58b6934142da31f6d1638eb
parentcdeeeae056a429e729ae9e914fa8142ee45bee93
lguest: make sure cpu is initialized before accessing it

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>
drivers/lguest/lguest_user.c