diff options
author | Patrick McHardy <kaber@trash.net> | 2006-10-12 08:50:30 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-10-12 08:50:30 (GMT) |
commit | b974179abef7cd680b80bd7c7042802bdd6f0eb6 (patch) | |
tree | e96431b67357026e8e23ec9a83fb018c393fcdbd | |
parent | 52c41a3224666d252d34597b580f1b6d4dc440e7 (diff) | |
download | linux-fsl-qoriq-b974179abef7cd680b80bd7c7042802bdd6f0eb6.tar.xz |
[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>
-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 221e403..02f3c79 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); |