[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130103123217.GB2278@obelix.rh>
Date: Thu, 3 Jan 2013 10:32:17 -0200
From: Flavio Leitner <fbl@...hat.com>
To: Ben Hutchings <bhutchings@...arflare.com>
Cc: netdev <netdev@...r.kernel.org>, Jiri Pirko <jiri@...nulli.us>
Subject: Re: [PATCH v2 net-next] team: add ethtool support
On Mon, Dec 31, 2012 at 10:16:26PM +0000, Ben Hutchings wrote:
> On Sun, 2012-12-30 at 00:37 -0200, Flavio Leitner wrote:
> > This patch adds few ethtool operations to team driver.
> >
> > Signed-off-by: Flavio Leitner <fbl@...hat.com>
> > ---
> > v2 - removed generic statistics from ethtool
> >
> > drivers/net/team/team.c | 17 +++++++++++++++++
> > 1 file changed, 17 insertions(+)
> >
> > diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
> > index ad86660..7665a088 100644
> > --- a/drivers/net/team/team.c
> > +++ b/drivers/net/team/team.c
> [...]
> > +static void team_ethtool_get_drvinfo(struct net_device *dev,
> > + struct ethtool_drvinfo *drvinfo)
> > +{
> > + strncpy(drvinfo->driver, DRV_NAME, 32);
> > + strncpy(drvinfo->version, UTS_RELEASE, 32);
> > +}
> [...]
>
> These must be null-terminated, so use strlcpy() not strncpy().
Ok, I will post another patch fixing this and few other drivers as
well.
Thank you!
--
fbl
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists