diff options
author | Patrick McHardy <kaber@trash.net> | 2006-10-12 04:50:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-10-12 04:50:30 -0400 |
commit | b974179abef7cd680b80bd7c7042802bdd6f0eb6 (patch) | |
tree | e96431b67357026e8e23ec9a83fb018c393fcdbd /net | |
parent | 52c41a3224666d252d34597b580f1b6d4dc440e7 (diff) |
[RTNETLINK]: Fix use of wrong skb in do_getlink()
skb is the netlink query, nskb is the reply message.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/rtnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
602 | goto errout; | 602 | goto errout; |
603 | } | 603 | } |
604 | 604 | ||
605 | err = rtnl_unicast(skb, NETLINK_CB(skb).pid); | 605 | err = rtnl_unicast(nskb, NETLINK_CB(skb).pid); |
606 | errout: | 606 | errout: |
607 | kfree(iw_buf); | 607 | kfree(iw_buf); |
608 | dev_put(dev); | 608 | dev_put(dev); |