From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzNyH-0001Ww-ID for qemu-devel@nongnu.org; Thu, 09 Aug 2012 04:19:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzNyG-0006dK-Hw for qemu-devel@nongnu.org; Thu, 09 Aug 2012 04:19:57 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:45646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzNyG-0006ce-7I for qemu-devel@nongnu.org; Thu, 09 Aug 2012 04:19:56 -0400 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 9 Aug 2012 09:19:52 +0100 Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q798JE4w2850934 for ; Thu, 9 Aug 2012 09:19:14 +0100 Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q797tP0O027186 for ; Thu, 9 Aug 2012 03:55:26 -0400 Date: Thu, 9 Aug 2012 09:19:12 +0100 From: Stefan Hajnoczi Message-ID: <20120809081912.GA7824@stefanha-thinkpad.localdomain> References: <1343061740-14870-1-git-send-email-riegamaths@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1343061740-14870-1-git-send-email-riegamaths@gmail.com> 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 =?iso-8859-1?Q?F=E4rber?= On Tue, Jul 24, 2012 at 12:42:20AM +0800, riegamaths@gmail.com wrote: > 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 > --- > vl.c | 10 +++++----- > 1 files changed, 5 insertions(+), 5 deletions(-) Thanks, applied to the trivial patches tree: https://github.com/stefanha/qemu/commits/trivial-patches Stefan