From owner-svn-src-head@freebsd.org Mon Mar 14 09:10:31 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D3F78ACF2E6; Mon, 14 Mar 2016 09:10:31 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 967A4E65; Mon, 14 Mar 2016 09:10:31 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1afOW5-000P1J-6N; Mon, 14 Mar 2016 12:10:21 +0300 Date: Mon, 14 Mar 2016 12:10:21 +0300 From: Slawa Olhovchenkov To: "George V. Neville-Neil" Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r296829 - head/usr.sbin/bhyve Message-ID: <20160314091021.GE94639@zxy.spb.ru> References: <201603140848.u2E8mGti074223@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201603140848.u2E8mGti074223@repo.freebsd.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2016 09:10:31 -0000 On Mon, Mar 14, 2016 at 08:48:16AM +0000, George V. Neville-Neil wrote: > Author: gnn > Date: Mon Mar 14 08:48:16 2016 > New Revision: 296829 > URL: https://svnweb.freebsd.org/changeset/base/296829 > > Log: > Fix typo: nmd->cur_tx_ring should be used in pci_vtnet_netmap_writev() > The buffer length should be checked to avoid overflow, but there > is no API to get the slot length, so the hardcoded value is used. What about netmap_ring:nr_buf_size?