From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9fHY-0005AX-Co for qemu-devel@nongnu.org; Tue, 12 Apr 2011 11:13:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9fHX-0006z6-Ji for qemu-devel@nongnu.org; Tue, 12 Apr 2011 11:13:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9fHX-0006yq-9c for qemu-devel@nongnu.org; Tue, 12 Apr 2011 11:13:31 -0400 Message-ID: <4DA46BFC.5090003@redhat.com> Date: Tue, 12 Apr 2011 17:13:00 +0200 From: Jes Sorensen MIME-Version: 1.0 References: <1632463ee09a9df5690475f0b507757c0876fce9.1302617257.git.amit.shah@redhat.com> <4DA469D1.1010300@redhat.com> <4DA46C1E.1000105@redhat.com> In-Reply-To: <4DA46C1E.1000105@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 5/5] atapi: GESN: implement 'media' subcommand List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Juan Quintela , Stefan Hajnoczi , qemu list , Markus Armbruster , Amit Shah , Paolo Bonzini On 04/12/11 17:13, Kevin Wolf wrote: > Am 12.04.2011 17:03, schrieb Jes Sorensen: >> Shouldn't you verify that you don't exceed max_len in this? > > Not necessary (the buffer is always 2048 bytes), but it looks like the > max_len parameter is unused now, so it could be removed. > > Kevin That works fine too - I just didn't like having a length and then having it ignored completely. Cheers, Jes