From: Patrick McHardy Date: Thu, 12 Oct 2006 08:50:30 +0000 (-0700) Subject: [RTNETLINK]: Fix use of wrong skb in do_getlink() X-Git-Tag: v2.6.19-rc2~17^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b974179abef7cd680b80bd7c7042802bdd6f0eb6;p=linux-2.6-omap-h63xx.git [RTNETLINK]: Fix use of wrong skb in do_getlink() skb is the netlink query, nskb is the reply message. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 221e4038216..02f3c794789 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -602,7 +602,7 @@ static int rtnl_getlink(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) goto errout; } - err = rtnl_unicast(skb, NETLINK_CB(skb).pid); + err = rtnl_unicast(nskb, NETLINK_CB(skb).pid); errout: kfree(iw_buf); dev_put(dev);