Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752143AbcDZNyP (ORCPT ); Tue, 26 Apr 2016 09:54:15 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:58359 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751951AbcDZNyN (ORCPT ); Tue, 26 Apr 2016 09:54:13 -0400 From: Arnd Bergmann To: Saeed Mahameed Cc: Saeed Mahameed , Matan Barak , Leon Romanovsky , "David S. Miller" , Achiad Shochat , Or Gerlitz , Amir Vadai , Tariq Toukan , Linux Netdev List , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net/mlx5e: avoid stack overflow in mlx5e_open_channels Date: Tue, 26 Apr 2016 15:53:40 +0200 Message-ID: <5940636.9Nic57IXcZ@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1461590139-1396745-1-git-send-email-arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:VxrnJv0ASu//oyaNylaOJfsJMJ6/TVgZmSxaHWZOR2yB1B+MnhS WBU4PMMujV1l1E5mFp81pOCagnWbj8NQ0y/2XBjgHKfVN2GVqwR5mkfM7BnEXRayGtQw8rt m0zAvXzCciZSrDkhigZOmCaefK+ZSsfGli7Z+0umK2JCfrmcY4tp6gq0SPmmybHcVtfRI9/ arIh3FjfGj9/fhlfMJjpg== X-UI-Out-Filterresults: notjunk:1;V01:K0:25rrk/8aPf4=:bv14aXA092zGJI0RjwHs0T qRGV5pJeNSxFvR/Ee8loNdzmUdIL1qgbmxdPwn40UpipvJ5bn13IosBa4hadk75KtXhzoq2pZ fDGdF0Ks+Gusf7XIWFsxCqfb7VgqYABv072BfTKQE3INb6953s49DnwGnniMQAyZHvTLt32DV NRRuipCTtj8wUJknc+OSk9nowI7bg35K6y92vPWcFFdBspucscIkwIjxAQKvrqQWGpD9Jsp3q TNpDU2yhBDkv0llTxlTvoDhuZpjkAdbpKUwA81sJzGKEeB3kG8ch/kyLDbj2ricZ1Wre4vPAi 3Dgw2Nrn8wlF3PTQeErXoobYtTlSYiVEDlkovY/EAvAgmvaVum/CVTWxObZJ/cpoXLrRDL3kz zoVakMLaG9Gv7rhCXrAyYvedNOWmz24lvAeKA4v3sCJBY+aPXtC/CZ9/bCTPCebQjEOb/Mbp/ rHU4JriX1aWk8cBrqwJq2bjGYwdPKeXDj2X/eogNcJBGGNGfGPfPhyaGQHAKxK6RCOt3ZTU3N D31autfOZQJ0QvvR0kcl6oC/gCG7afKZr9CcjZI2F34GfzwKJ059qriubZnFj9UORvgXa22TU eIXhPbEAaYPNmtubqNyckClT8g94nL2BERo2WwpBp2sKz5y0Km7Nd//lFiAt1+MCJnaq8foPu +CdsyU9/tFB92JE3WYyfdAzf7MkQWstNojk1u8T4lmkdPcJoaiP7PbdXp604WWoX4RIwaDPat UP7lYZfMXMS9A/Ye Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 578 Lines: 17 On Tuesday 26 April 2016 16:48:33 Saeed Mahameed wrote: > > } > > > > -static void mlx5e_build_channel_param(struct mlx5e_priv *priv, > > - struct mlx5e_channel_param *cparam) > > +static struct mlx5e_channel_param *mlx5e_build_channel_param(struct mlx5e_priv *priv) > > I prefer to keep the function prototype as before and move the dynamic > allocation to mlx5e_open_channels, > to keep alloc/free symmetric in mlx5e_open_channels. > > Sure, do you want to just edit this when you forward the patch, or do you need me to do it? Arnd