[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <MW3PR11MB452221AF72D15667AEE82A088F760@MW3PR11MB4522.namprd11.prod.outlook.com>
Date: Thu, 23 Jul 2020 00:44:08 +0000
From: "Brady, Alan" <alan.brady@...el.com>
To: Jakub Kicinski <kuba@...nel.org>,
"Nguyen, Anthony L" <anthony.l.nguyen@...el.com>
CC: "davem@...emloft.net" <davem@...emloft.net>,
"Michael, Alice" <alice.michael@...el.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"nhorman@...hat.com" <nhorman@...hat.com>,
"sassmann@...hat.com" <sassmann@...hat.com>,
"Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>,
"Burra, Phani R" <phani.r.burra@...el.com>,
"Hay, Joshua A" <joshua.a.hay@...el.com>,
"Chittim, Madhu" <madhu.chittim@...el.com>,
"Linga, Pavan Kumar" <pavan.kumar.linga@...el.com>,
"Skidmore, Donald C" <donald.c.skidmore@...el.com>,
"Brandeburg, Jesse" <jesse.brandeburg@...el.com>,
"Samudrala, Sridhar" <sridhar.samudrala@...el.com>
Subject: RE: [net-next v4 06/15] iecm: Implement mailbox functionality
> -----Original Message-----
> From: Jakub Kicinski <kuba@...nel.org>
> Sent: Tuesday, July 21, 2020 11:32 AM
> To: Nguyen, Anthony L <anthony.l.nguyen@...el.com>
> Cc: davem@...emloft.net; Michael, Alice <alice.michael@...el.com>;
> netdev@...r.kernel.org; nhorman@...hat.com; sassmann@...hat.com;
> Kirsher, Jeffrey T <jeffrey.t.kirsher@...el.com>; Brady, Alan
> <alan.brady@...el.com>; Burra, Phani R <phani.r.burra@...el.com>; Hay,
> Joshua A <joshua.a.hay@...el.com>; Chittim, Madhu
> <madhu.chittim@...el.com>; Linga, Pavan Kumar
> <pavan.kumar.linga@...el.com>; Skidmore, Donald C
> <donald.c.skidmore@...el.com>; Brandeburg, Jesse
> <jesse.brandeburg@...el.com>; Samudrala, Sridhar
> <sridhar.samudrala@...el.com>
> Subject: Re: [net-next v4 06/15] iecm: Implement mailbox functionality
>
> On Mon, 20 Jul 2020 17:38:01 -0700 Tony Nguyen wrote:
> > + struct iecm_adapter *adapter = vport->adapter;
> > + netdev_features_t dflt_features;
> > + netdev_features_t offloads = 0;
> > + struct iecm_netdev_priv *np;
> > + struct net_device *netdev;
> > + int err;
> > +
> > + netdev = alloc_etherdev_mqs(sizeof(struct iecm_netdev_priv),
> > + IECM_MAX_Q, IECM_MAX_Q);
> > + if (!netdev)
> > + return -ENOMEM;
> > + vport->netdev = netdev;
> > + np = netdev_priv(netdev);
> > + np->vport = vport;
>
> > + /* register last */
> > + err = register_netdev(netdev);
> > + if (err)
> > + return err;
>
> aren't you leaking the netdev here?
Certainly yes. Will fix.
Alan
Powered by blists - more mailing lists