From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann 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> References: <1461590139-1396745-1-git-send-email-arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org 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 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html