From: Flavio Leitner <fbl@redhat.com>
To: Ben Hutchings <bhutchings@solarflare.com>
Cc: netdev <netdev@vger.kernel.org>, Jiri Pirko <jiri@resnulli.us>
Subject: Re: [PATCH v2 net-next] team: add ethtool support
Date: Thu, 3 Jan 2013 10:32:17 -0200 [thread overview]
Message-ID: <20130103123217.GB2278@obelix.rh> (raw)
In-Reply-To: <1356992186.31299.1.camel@deadeye.wl.decadent.org.uk>
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@redhat.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
prev parent reply other threads:[~2013-01-03 12:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-30 2:37 [PATCH v2 net-next] team: add ethtool support Flavio Leitner
2012-12-30 8:51 ` Jiri Pirko
2012-12-30 10:33 ` David Miller
2012-12-31 22:16 ` Ben Hutchings
2013-01-03 12:32 ` Flavio Leitner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130103123217.GB2278@obelix.rh \
--to=fbl@redhat.com \
--cc=bhutchings@solarflare.com \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).