Subject: [RTNETLINK]: Fix use of wrong skb in do_getlink()

From: Patrick McHardy <[email-masked]>
Date: Thu, 12 Oct 2006 08:40:57 +0200

[RTNETLINK]: Fix use of wrong skb in do_getlink()

skb is the netlink query, nskb is the reply message.

Signed-off-by: Patrick McHardy <[email-masked]>

---
commit 7d6fc0796ea33cd86cf20ccd51c351538903dcd9
tree 15bd1793a030f471f4a70762b079cf187bca8207
parent 587b522ced8a8ca3bddc99b05ec5118f11cfe164
author Patrick McHardy <[email-masked]> Thu, 12 Oct 2006 08:38:03 +0200
committer Patrick McHardy <[email-masked]> Thu, 12 Oct 2006 08:38:03 +0200

 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 @@ #endif	/* CONFIG_NET_WIRELESS_RTNETLINK 
 		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);