summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorThomas Graf2007-03-23 05:41:06 +0100
committerDavid S. Miller2007-04-26 07:27:24 +0200
commit51057f2fecff1c520b083c5ac9229e7aebce9e01 (patch)
tree63429732a0eff9bd06facc8d35ccd22e822e4295 /net
parent[NET_SCHED] qdisc: avoid transmit softirq on watchdog wakeup (diff)
downloadkernel-qcow2-linux-51057f2fecff1c520b083c5ac9229e7aebce9e01.tar.gz
kernel-qcow2-linux-51057f2fecff1c520b083c5ac9229e7aebce9e01.tar.xz
kernel-qcow2-linux-51057f2fecff1c520b083c5ac9229e7aebce9e01.zip
[RTNL]: Properly return rntl message handler
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/rtnetlink.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 294c2f209a31..4398cb81bcab 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -122,10 +122,10 @@ static rtnl_doit_func rtnl_get_doit(int protocol, int msgindex)
struct rtnl_link *tab;
tab = rtnl_msg_handlers[protocol];
- if (tab == NULL || tab->doit == NULL)
+ if (tab == NULL || tab[msgindex].doit == NULL)
tab = rtnl_msg_handlers[PF_UNSPEC];
- return tab ? tab->doit : NULL;
+ return tab ? tab[msgindex].doit : NULL;
}
static rtnl_dumpit_func rtnl_get_dumpit(int protocol, int msgindex)
@@ -133,10 +133,10 @@ static rtnl_dumpit_func rtnl_get_dumpit(int protocol, int msgindex)
struct rtnl_link *tab;
tab = rtnl_msg_handlers[protocol];
- if (tab == NULL || tab->dumpit == NULL)
+ if (tab == NULL || tab[msgindex].dumpit == NULL)
tab = rtnl_msg_handlers[PF_UNSPEC];
- return tab ? tab->dumpit : NULL;
+ return tab ? tab[msgindex].dumpit : NULL;
}
/**