Hi Michael,

On Mon, 6 Feb 2012, Michael Ellerman wrote:
Signed-off-by: Michael Ellerman <[email protected]>
---
tools/kvm/builtin-run.c |    5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c
index 95d35a5..569246e 100644
--- a/tools/kvm/builtin-run.c
+++ b/tools/kvm/builtin-run.c
@@ -997,6 +997,11 @@ static int kvm_cmd_run_init(int argc, const char **argv)
        }

        kvm = kvm__init(dev, hugetlbfs_path, ram_size, guest_name);
+       if (IS_ERR(kvm)) {
+               r = PTR_ERR(kvm);
+               pr_err("kvm__init() failed with error %d\n", r);
+               goto fail;
+       }


I just pushed commit 3dfcb6ec85d5430622c8b99ca05451c1afd08bf5 ("kvm tool: Don't close not yet opened files and SIGSEV fix") from Cyrillos which was which seems to fix both issues. I was flying back from FOSDEM so I couldn't merge it earlier, sorry.

                        Pekka

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to