Received: from eggs.gnu.org ([2001:4830:134:3::10]:36883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmyXB-000886-FI for qemu-devel@nongnu.org; Thu, 22 Sep 2016 03:35:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmyX7-0001Vj-CY for qemu-devel@nongnu.org; Thu, 22 Sep 2016 03:35:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmyX7-0001VA-6R for qemu-devel@nongnu.org; Thu, 22 Sep 2016 03:35:01 -0400 References: <1467280180-9234-1-git-send-email-pl@kamp.de> <20160630133914.GB13793@stefanha-x1.localdomain> From: Jason Wang Message-ID: Date: Thu, 22 Sep 2016 15:34:42 +0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] net: limit allocation in nc_sendv_compat List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven , Stefan Hajnoczi Cc: qemu-devel@nongnu.org, dhannawatpooja1@gmail.com On 2016=E5=B9=B409=E6=9C=8816=E6=97=A5 21:27, Peter Lieven wrote: > Am 30.06.2016 um 15:39 schrieb Stefan Hajnoczi: >> On Thu, Jun 30, 2016 at 11:49:40AM +0200, Peter Lieven wrote: >>> we only need to allocate enough memory to hold the packet. This=20 >>> might be >>> less than NET_BUFSIZE. Additionally fail early if the packet is large= r >>> than NET_BUFSIZE. >>> >>> Signed-off-by: Peter Lieven >>> --- >>> net/net.c | 8 ++++++-- >>> 1 file changed, 6 insertions(+), 2 deletions(-) >> Reviewed-by: Stefan Hajnoczi > > Can somebody pick this up please? > > Thanks, > Peter > > Picked in my tree, thanks.