From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36326 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0FVe-0002lz-6l for qemu-devel@nongnu.org; Thu, 17 Mar 2011 11:53:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0FVb-0004yR-GP for qemu-devel@nongnu.org; Thu, 17 Mar 2011 11:53:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0FVb-0004xr-7B for qemu-devel@nongnu.org; Thu, 17 Mar 2011 11:53:07 -0400 Message-ID: <4D822EE3.9080806@redhat.com> Date: Thu, 17 Mar 2011 16:55:15 +0100 From: Kevin Wolf MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH +STABLE-0.14] exit if -drive specified is invalid instead of ignoring the "wrong" -drive References: <4D81BF12.4020500@msgid.tls.msk.ru> <4D822301.6050206@redhat.com> <4D822D9D.50907@msgid.tls.msk.ru> In-Reply-To: <4D822D9D.50907@msgid.tls.msk.ru> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: qemu-devel@nongnu.org Am 17.03.2011 16:49, schrieb Michael Tokarev: > 17.03.2011 18:04, Kevin Wolf wrote: >> Am 17.03.2011 08:58, schrieb Michael Tokarev: > [] >>> --- a/vl.c >>> +++ b/vl.c >>> @@ -2098,7 +2098,8 @@ int main(int argc, char **argv, char **envp) >>> HD_OPTS); >>> break; >>> case QEMU_OPTION_drive: >>> - drive_def(optarg); >>> + if (drive_def(optarg) == NULL) >>> + exit(1); >> >> Coding style requires braces here. > > I'll just stick it into debian package. I'm not going > to change all the other braces like this around that place. I'm only asking to add one pair of braces in the line that you touch, not to change everything in qemu. Shouldn't be that hard... Kevin