[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0ec8808f-76df-d441-b4f4-8c0fd9136a3b@gmail.com>
Date: Mon, 28 Nov 2016 19:20:30 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: netdev@...r.kernel.org, davem@...emloft.net,
bcm-kernel-feedback-list@...adcom.com, allan.nielsen@...rosemi.com,
raju.lakkaraju@...rosemi.com
Subject: Re: [PATCH net-next v2 2/2] net: phy: bcm7xxx: Plug in support for
reading PHY error counters
Le 11/28/16 à 18:50, Andrew Lunn a écrit :
>> +struct bcm7xxx_phy_priv {
>> + u64 *stats;
>> +};
>
>> +static int bcm7xxx_28nm_probe(struct phy_device *phydev)
>> +{
>> + struct bcm7xxx_phy_priv *priv;
>> +
>> + priv = devm_kzalloc(&phydev->mdio.dev, sizeof(*priv), GFP_KERNEL);
>> + if (!priv)
>> + return -ENOMEM;
>> +
>> + phydev->priv = priv;
>> +
>> + priv->stats = devm_kzalloc(&phydev->mdio.dev,
>> + bcm_phy_get_sset_count(phydev), GFP_KERNEL);
>
> Hi Florian
>
> Should there be a * sizeof(u64) in there?
It should thanks for noticing!
--
Florian
Powered by blists - more mailing lists