[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Fix crash at startup
From: |
Laurent Desnogues |
Subject: |
Re: [Qemu-devel] [PATCH] Fix crash at startup |
Date: |
Mon, 19 Jan 2009 08:16:12 +0100 |
On Mon, Jan 19, 2009 at 7:58 AM, Lionel Landwerlin
<address@hidden> wrote:
> Fix crash at startup
>
> Signed-off-by: Lionel Landwerlin <address@hidden>
> ---
> exec.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/exec.c b/exec.c
> index faa6333..7c9d7dc 100644
> --- a/exec.c
> +++ b/exec.c
> @@ -2066,2 +2066,2 @@ void page_dump(FILE *f)
> int i, j, prot, prot1;
> PageDesc *p;
>
> + if (!f)
> + return;
> +
I would prefer a slightly different approach like the attached patch,
but that's just personal taste :-)
Laurent
Signed-off-by: Laurent Desnogues <address@hidden>
log.patch
Description: Text Data