diff options
author | Balaji Rao <balajirrao@gmail.com> | 2007-12-28 14:26:24 +0530 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-01-30 22:50:04 +1100 |
commit | ec04b13f67be3c90b38c625f4b8bdfea54c1ff60 (patch) | |
tree | 7819de21361fdd65487ef75ea9f2b774e4203f83 /drivers/lguest/core.c | |
parent | 5c55841d16dbf7c759fa6fb2ecc5e615b86d17db (diff) | |
download | op-kernel-dev-ec04b13f67be3c90b38c625f4b8bdfea54c1ff60.zip op-kernel-dev-ec04b13f67be3c90b38c625f4b8bdfea54c1ff60.tar.gz |
lguest: Reboot support
Reboot Implemented
(Prevent fd leak, fix style and fix documentation --RR)
Signed-off-by: Balaji Rao <balajirrao@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest/core.c')
-rw-r--r-- | drivers/lguest/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c index f10abc8..c1069bc 100644 --- a/drivers/lguest/core.c +++ b/drivers/lguest/core.c @@ -235,6 +235,8 @@ int run_guest(struct lguest *lg, unsigned long __user *user) lguest_arch_handle_trap(lg); } + if (lg->dead == ERR_PTR(-ERESTART)) + return -ERESTART; /* The Guest is dead => "No such file or directory" */ return -ENOENT; } |