From mboxrd@z Thu Jan 1 00:00:00 1970 From: "John W. Linville" Subject: Re: [PATCH ethtool v2] ethtool: Fix uninitialized variable use at qsfp dump Date: Thu, 4 Oct 2018 15:40:34 -0400 Message-ID: <20181004194033.GD8557@tuxdriver.com> References: <1538465059-24645-1-git-send-email-eranbe@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, Chris Preimesberger , Andrew Lunn , Neil Horman , Vidya Sagar Ravipati To: Eran Ben Elisha Return-path: Received: from charlotte.tuxdriver.com ([70.61.120.58]:59892 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727354AbeJECkC (ORCPT ); Thu, 4 Oct 2018 22:40:02 -0400 Content-Disposition: inline In-Reply-To: <1538465059-24645-1-git-send-email-eranbe@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Oct 02, 2018 at 10:24:19AM +0300, Eran Ben Elisha wrote: > Struct sff_diags can be used uninitialized at sff8636_show_dom, this > caused the tool to show unreported fields (supports_alarms) by the lower > level driver. > > In addition, make sure the same struct is being initialized at > sff8472_parse_eeprom function, to avoid the same issue here. > > Fixes: a5e73bb05ee4 ("ethtool:QSFP Plus/QSFP28 Diagnostics Information Support") > Signed-off-by: Eran Ben Elisha OK, queued for next release... -- John W. Linville Someday the world will need a hero, and you linville@tuxdriver.com might be all we have. Be ready.