[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190819.183158.1151163538921922149.davem@davemloft.net>
Date: Mon, 19 Aug 2019 18:31:58 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: jeffrey.t.kirsher@...el.com
Cc: paul.greenwalt@...el.com, netdev@...r.kernel.org,
nhorman@...hat.com, sassmann@...hat.com, andrewx.bowers@...el.com
Subject: Re: [net-next v2 04/14] ice: fix set pause param autoneg check
From: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Date: Mon, 19 Aug 2019 09:16:58 -0700
> + /* Get pause param reports configured and negotiated flow control pause
> + * when ETHTOOL_GLINKSETTINGS is defined. Since ETHTOOL_GLINKSETTINGS is
> + * defined get pause param pause->autoneg reports SW configured setting,
> + * so compare pause->autoneg with SW configured to prevent the user from
> + * using set pause param to chance autoneg.
> + */
> + pcaps = devm_kzalloc(&vsi->back->pdev->dev, sizeof(*pcaps),
> + GFP_KERNEL);
Just in case it isn't clear, please use plain kzalloc/kfree in this code.
Thank you.
Powered by blists - more mailing lists