lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <MW5PR11MB58114B2885360C1718DCC62ADD5CA@MW5PR11MB5811.namprd11.prod.outlook.com>
Date: Tue, 20 Jun 2023 16:07:34 +0000
From: "Ertman, David M" <david.m.ertman@...el.com>
To: "Nguyen, Anthony L" <anthony.l.nguyen@...el.com>,
	"intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>, "bcreeley@....com"
	<bcreeley@....com>, "daniel.machon@...rochip.com"
	<daniel.machon@...rochip.com>, "simon.horman@...igine.com"
	<simon.horman@...igine.com>
Subject: RE: [Intel-wired-lan] [PATCH iwl-next v5 05/10] ice: process events
 created by lag netdev event handler

> -----Original Message-----
> From: Nguyen, Anthony L <anthony.l.nguyen@...el.com>
> Sent: Friday, June 16, 2023 1:48 PM
> To: Ertman, David M <david.m.ertman@...el.com>; intel-wired-
> lan@...ts.osuosl.org
> Cc: netdev@...r.kernel.org; bcreeley@....com;
> daniel.machon@...rochip.com; simon.horman@...igine.com
> Subject: Re: [Intel-wired-lan] [PATCH iwl-next v5 05/10] ice: process events
> created by lag netdev event handler
> 
> On 6/15/2023 9:29 AM, Dave Ertman wrote:
> 
> ...
> 
> > +static void
> > +ice_lag_monitor_rdma(struct ice_lag *lag, void *ptr)
> > +{
> > +	struct netdev_notifier_changeupper_info *info;
> > +	struct net_device *netdev;
> > +	struct ice_pf *pf;
> > +
> > +	info = ptr;
> > +	netdev = netdev_notifier_info_to_dev(ptr);
> > +
> > +	if (netdev != lag->netdev)
> >   		return;
> > -	}
> >
> >   	if (info->linking)
> > -		ice_lag_link(lag, info);
> > +		ice_clear_rdma_cap(pf);
> >   	else
> > -		ice_lag_unlink(lag, info);
> > -
> > -	ice_display_lag_info(lag);
> > +		ice_set_rdma_cap(pf);
> 
> pf isn't being assigned. Clang reports:

Fixed - changes out in v6

> 
> +../drivers/net/ethernet/intel/ice/ice_lag.c:657:22: warning: variable
> 'pf' is uninitialized when used here [-Wuninitialized]
> +                ice_clear_rdma_cap(pf);
> +                                   ^~
> +../drivers/net/ethernet/intel/ice/ice_lag.c:648:19: note: initialize
> the variable 'pf' to silence this warning
> +        struct ice_pf *pf;
> +                         ^
> +                          = NULL
> +1 warning generated.
> 
> >   }
> >
> >   /**

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ