|
From: | Gerd Hoffmann |
Subject: | [Qemu-devel] Re: [PATCH] console: Avoid dereferencing NULL active_console |
Date: | Wed, 29 Sep 2010 10:44:37 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100827 Red Hat/3.1.3-1.el6 Thunderbird/3.1.3 |
On 09/20/10 15:11, Stefan Hajnoczi wrote:
The console_select() function does not check that active_console is non-NULL before dereferencing it. When invoked with qemu -nodefaults it is possible to hit this case. This patch checks that active_console is non-NULL before stashing away the old console dimensions in console_select().
Looks sane to me, simliar tests exist in other places. Acked-by: Gerd Hoffmann <address@hidden> cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |