From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2] cxgb3: remove VLA usage Date: Wed, 07 Mar 2018 15:56:14 -0500 (EST) Message-ID: <20180307.155614.873104283081437904.davem@davemloft.net> References: <20180307180333.GA13800@embeddedgus> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: santosh@chelsio.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, garsilva@embeddedor.com To: gustavo@embeddedor.com Return-path: In-Reply-To: <20180307180333.GA13800@embeddedgus> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: "Gustavo A. R. Silva" Date: Wed, 7 Mar 2018 12:03:33 -0600 > Remove VLA usage and change the 'len' argument to a u8 and use a 256 > byte buffer on the stack. Notice that these lengths are limited by the > encoding field in the VPD structure, which is a u8 [1]. > > [1] https://marc.info/?l=linux-netdev&m=152044354814024&w=2 > > Signed-off-by: Gustavo A. R. Silva > --- > Changes in v2: > - Update the code as suggested by David Miller. > - Update changelog based on David's comments. > - Update subject. Applied to net-next, thanks.