[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140131114712.GB26148@htj.dyndns.org>
Date: Fri, 31 Jan 2014 06:47:12 -0500
From: Tejun Heo <tj@...nel.org>
To: Yogesh Gaur <yogeshgaur.83@...il.com>
Cc: akpm@...ux-foundation.org, torvalds@...ux-foundation.org,
linux-kernel@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: Suspected Copy Paste error in rtnl_bridge_notify
Hey,
Seems suspicious but I don't know the code at all. cc'ing David and
netdev and quoting the whole body for them.
Thanks.
On Fri, Jan 31, 2014 at 11:32:55AM +0530, Yogesh Gaur wrote:
> Hello All,
>
> I want to clarify about following code-snippet from
> file: "net/core/rtnetlink.c"
> func: rtnl_bridge_notify
>
> ----------------------------------------------------------------------------
> | if ((!flags || (flags & BRIDGE_FLAGS_MASTER)) && |
> | br_dev && br_dev->netdev_ops->ndo_bridge_getlink) {
> |
> | err = br_dev->netdev_ops->ndo_bridge_getlink(skb, 0, 0, dev, 0);
> |
> | if (err < 0)
> |
> | goto errout;
> |
> | }
> |
> |
> |
> | if ((flags & BRIDGE_FLAGS_SELF) &&
> |
> | dev->netdev_ops->ndo_bridge_getlink) {
> |
> | err = dev->netdev_ops->ndo_bridge_getlink(skb, 0, 0, dev, 0);
> |
> | if (err < 0)
> |
> | goto errout;
> |
> ----------------------------------------------------------------------------
>
> In above code isn't code line:
> err = br_dev->netdev_ops->ndo_bridge_getlink(skb, 0, 0, dev, 0);
> should be
> err = br_dev->netdev_ops->ndo_bridge_getlink(skb, 0, 0, br_dev, 0);
>
> If this needs to be changed then please review attached patch adding this
> change.
--
tejun
--
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