summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorAlexey Kuznetsov <kuznet@ms2.inr.ac.ru>2006-02-09 16:40:58 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-02-09 16:43:41 -0800
commit28633514afd68afa77ed2fa34fa53626837bf2d5 (patch)
tree5f816a81d5aad85521b0c092885bd2b735bafd1d /net/core
parenta70ea994a0d83fd0151a070be72b87d014ef0a7e (diff)
downloadop-kernel-dev-28633514afd68afa77ed2fa34fa53626837bf2d5.zip
op-kernel-dev-28633514afd68afa77ed2fa34fa53626837bf2d5.tar.gz
[NETLINK]: illegal use of pid in rtnetlink
When a netlink message is not related to a netlink socket, it is issued by kernel socket with pid 0. Netlink "pid" has nothing to do with current->pid. I called it incorrectly, if it was named "port", the confusion would be avoided. Signed-off-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/rtnetlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 8700379..eca2976 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -455,7 +455,7 @@ void rtmsg_ifinfo(int type, struct net_device *dev, unsigned change)
if (!skb)
return;
- if (rtnetlink_fill_ifinfo(skb, dev, type, current->pid, 0, change, 0) < 0) {
+ if (rtnetlink_fill_ifinfo(skb, dev, type, 0, 0, change, 0) < 0) {
kfree_skb(skb);
return;
}
OpenPOWER on IntegriCloud