[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] Adds null check for DisplayStatus
From: |
Stefano Stabellini |
Subject: |
[Qemu-devel] Re: [PATCH] Adds null check for DisplayStatus |
Date: |
Wed, 21 Jan 2009 11:06:54 +0000 |
User-agent: |
Thunderbird 2.0.0.14 (X11/20080505) |
This patch got lost.
Stefano Stabellini wrote:
> Allocate a DisplaySurface in dumb_display_init if none else does it.
> The DisplaySurface will be used for the qemu monitor, serial and
> parallel ports, etc.
>
> Signed-off-by: Andrew May <address@hidden>
> Signed-off-by: Stefano Stabellini <address@hidden>
>
> diff --git a/vl.c b/vl.c
> index 63d954b..b246e47 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -2778,6 +2778,11 @@ DisplayState *get_displaystate(void)
> static void dumb_display_init(void)
> {
> DisplayState *ds = qemu_mallocz(sizeof(DisplayState));
> + if (ds == NULL) {
> + fprintf(stderr, "dumb_display_init: DisplayState allocation
> failed\n");
> + exit(1);
> + }
> + ds->surface = qemu_create_displaysurface(640, 480, 32, 640 * 4);
> register_displaystate(ds);
> }
>
>
- [PATCH] Adds null check for DisplayStatus (wasRe: [Qemu-devel] [6344] graphical_console_init change (Stefano Stabellini), (continued)
- [PATCH] Adds null check for DisplayStatus (wasRe: [Qemu-devel] [6344] graphical_console_init change (Stefano Stabellini), Shin-ichiro KAWASAKI, 2009/01/18
- Re: [PATCH] Adds null check for DisplayStatus (wasRe: [Qemu-devel] [6344] graphical_console_init change (Stefano Stabellini), Stefano Stabellini, 2009/01/19
- Re: [PATCH] Adds null check for DisplayStatus (wasRe: [Qemu-devel] [6344] graphical_console_init change (Stefano Stabellini), Shin-ichiro KAWASAKI, 2009/01/19
- Re: [PATCH] Adds null check for DisplayStatus (wasRe: [Qemu-devel] [6344] graphical_console_init change (Stefano Stabellini), Stefano Stabellini, 2009/01/19
- Re: [PATCH] Adds null check for DisplayStatus (wasRe: [Qemu-devel] [6344] graphical_console_init change (Stefano Stabellini), Anthony Liguori, 2009/01/19
- Re: [PATCH] Adds null check for DisplayStatus (wasRe: [Qemu-devel] [6344] graphical_console_init change (Stefano Stabellini), Stefano Stabellini, 2009/01/19
- Re: [PATCH] Adds null check for DisplayStatus (wasRe: [Qemu-devel] [6344] graphical_console_init change (Stefano Stabellini), Anthony Liguori, 2009/01/19
- [Qemu-devel] [PATCH] Adds null check for DisplayStatus, Stefano Stabellini, 2009/01/20
- Re: [Qemu-devel] [PATCH] Adds null check for DisplayStatus, Gerd Hoffmann, 2009/01/20
- Re: [Qemu-devel] [PATCH] Adds null check for DisplayStatus, Stefano Stabellini, 2009/01/20
- [Qemu-devel] Re: [PATCH] Adds null check for DisplayStatus,
Stefano Stabellini <=
- Re: [Qemu-devel] [PATCH] Adds null check for DisplayStatus, Anthony Liguori, 2009/01/21
- Re: [PATCH] Adds null check for DisplayStatus (wasRe: [Qemu-devel] [6344] graphical_console_init change (Stefano Stabellini), Anthony Liguori, 2009/01/19