aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/rtnetlink.c')
-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)
122 struct rtnl_link *tab; 122 struct rtnl_link *tab;
123 123
124 tab = rtnl_msg_handlers[protocol]; 124 tab = rtnl_msg_handlers[protocol];
125 if (tab == NULL || tab->doit == NULL) 125 if (tab == NULL || tab[msgindex].doit == NULL)
126 tab = rtnl_msg_handlers[PF_UNSPEC]; 126 tab = rtnl_msg_handlers[PF_UNSPEC];
127 127
128 return tab ? tab->doit : NULL; 128 return tab ? tab[msgindex].doit : NULL;
129} 129}
130 130
131static rtnl_dumpit_func rtnl_get_dumpit(int protocol, int msgindex) 131static 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)
133 struct rtnl_link *tab; 133 struct rtnl_link *tab;
134 134
135 tab = rtnl_msg_handlers[protocol]; 135 tab = rtnl_msg_handlers[protocol];
136 if (tab == NULL || tab->dumpit == NULL) 136 if (tab == NULL || tab[msgindex].dumpit == NULL)
137 tab = rtnl_msg_handlers[PF_UNSPEC]; 137 tab = rtnl_msg_handlers[PF_UNSPEC];
138 138
139 return tab ? tab->dumpit : NULL; 139 return tab ? tab[msgindex].dumpit : NULL;
140} 140}
141 141
142/** 142/**