Skip to contentSkip to conversation

net-core-rtnetlinkc-copy-paste-error-in-rtnl_bridge_notify.patch

PATCH Andrew Morton 2 participants 2 messages Apr 3, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Guys, I've been sitting on this since January and simply cannot remember what happened with it. Is this still a thing or did it get nacked, or...?

Thanks.

From: Yogesh Gaur <[email protected]>
Subject: net/core/rtnetlink.c: copy paste error in rtnl_bridge_notify()

Seems to be copy paste error in calling ndo_bridge_getlink() func.

Cc "David S. Miller" <[email protected]>
Cc Vlad Yasevich <[email protected]>
Cc Jiri Pirko <[email protected]>
Cc Nicolas Dichtel <[email protected]>

---

 net/core/rtnetlink.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/rtnetlink.c renamed from net/core/rtnetlink.c~net-core-rtnetlinkc-copy-paste-error-in-rtnl_bridge_notify +1 -1
diff -puN net/core/rtnetlink.c~net-core-rtnetlinkc-copy-paste-error-in-rtnl_bridge_notify net/core/rtnetlink.c
@@ -2576,7 +2576,7 @@ static int rtnl_bridge_notify(struct net
 
 	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);
+		err = br_dev->netdev_ops->ndo_bridge_getlink(skb, 0, 0, br_dev, 0);
 		if (err < 0)
 			goto errout;
 	}

_

#1 lore raw
Quoted 3 lines · Andrew Morton

Guys, I've been sitting on this since January and simply cannot remember what happened with it. Is this still a thing or did it get nacked, or...?

http://thread.gmane.org/gmane.linux.kernel/1638261/focus=1642371

I think someone should add a comment to this code line stating that this is intentional ... :)

Quoted 37 lines

Thanks.

From: Yogesh Gaur <[email protected]>
Subject: net/core/rtnetlink.c: copy paste error in rtnl_bridge_notify()

Seems to be copy paste error in calling ndo_bridge_getlink() func.

Cc "David S. Miller" <[email protected]>
Cc Vlad Yasevich <[email protected]>
Cc Jiri Pirko <[email protected]>
Cc Nicolas Dichtel <[email protected]>

---

  net/core/rtnetlink.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN net/core/rtnetlink.c~net-core-rtnetlinkc-copy-paste-error-in-rtnl_bridge_notify net/core/rtnetlink.c

net/core/rtnetlink.c renamed from net/core/rtnetlink.c~net-core-rtnetlinkc-copy-paste-error-in-rtnl_bridge_notify +1 -1
@@ -2576,7 +2576,7 @@ static int rtnl_bridge_notify(struct net
 
  	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);
+		err = br_dev->netdev_ops->ndo_bridge_getlink(skb, 0, 0, br_dev, 0);
  		if (err < 0)
  			goto errout;
  	}

_

--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html