Received: from eggs.gnu.org ([208.118.235.92]:39049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzNfc-0003gP-EJ for qemu-devel@nongnu.org; Thu, 09 Aug 2012 04:00:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzNfb-0001BM-08 for qemu-devel@nongnu.org; Thu, 09 Aug 2012 04:00:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzNfa-0001BC-OZ for qemu-devel@nongnu.org; Thu, 09 Aug 2012 04:00:38 -0400 From: Markus Armbruster References: <1343061740-14870-1-git-send-email-riegamaths@gmail.com> Date: Thu, 09 Aug 2012 10:00:32 +0200 In-Reply-To: <1343061740-14870-1-git-send-email-riegamaths@gmail.com> (riegamaths@gmail.com's message of "Tue, 24 Jul 2012 00:42:20 +0800") Message-ID: <87sjbw1om7.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] vl.c: Exit QEMU early if no machine is found List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: riegamaths@gmail.com Cc: Anthony Liguori , qemu-devel , Andreas =?utf-8?Q?F=C3=A4rber?= , Stefan Hajnoczi riegamaths@gmail.com writes: > From: Dunrong Huang > > We check whether the variable machine is NULL or not before accessing > it. If machine is NULL, exit QEMU with an error, this can avoids a > segfault error. > > Signed-off-by: Dunrong Huang Commit message lacks detail on how to reproduce the SEGV. This does the trick: $ qemu-system-xtensa -cpu help Reviewed-by: Markus Armbruster