Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751764AbcKFJyC (ORCPT ); Sun, 6 Nov 2016 04:54:02 -0500 Received: from mail-lf0-f41.google.com ([209.85.215.41]:35896 "EHLO mail-lf0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751613AbcKFJyB (ORCPT ); Sun, 6 Nov 2016 04:54:01 -0500 Subject: Re: [PATCH] net: 3com: typhoon: fix typhoon_get_link_ksettings To: Philippe Reynes , dave@thedillows.org, davem@davemloft.net References: <1478358700-22711-1-git-send-email-tremyfr@gmail.com> Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org From: Sergei Shtylyov Message-ID: <37849ac5-8781-00c0-de4c-476ca69ab1bf@cogentembedded.com> Date: Sun, 6 Nov 2016 12:53:57 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1478358700-22711-1-git-send-email-tremyfr@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 592 Lines: 20 Hello. On 11/5/2016 6:11 PM, Philippe Reynes wrote: > When moving from typhoon_get_settings to typhoon_getlink_ksettings > in the commit commit f7a5537cd2a5 ("net: 3com: typhoon: use new api One "commit" is enough. :-) > ethtool_{get|set}_link_ksettings"), we use a local variable supported > but we forgot to update the struct ethtool_link_ksettings with > this value. > > We also initialize advertising to zero, because otherwise it may > be uninitialized if no case of the switch (tp->xcvr_select) is used. > > Signed-off-by: Philippe Reynes [...] MBR, Sergei