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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b974179abef7cd680b80bd7c7042802bdd6f0eb6;p=linux-beck.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 221e4038216b..02f3c7947898 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);