aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
Diffstat (limited to 'net/core')
-rw-r--r--net/core/rtnetlink.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index cc09283fd76a..b2136accd267 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -864,10 +864,6 @@ rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, int *errp)
864 864
865 type = nlh->nlmsg_type; 865 type = nlh->nlmsg_type;
866 866
867 /* A control message: ignore them */
868 if (type < RTM_BASE)
869 return 0;
870
871 /* Unknown message: reply with EINVAL */ 867 /* Unknown message: reply with EINVAL */
872 if (type > RTM_MAX) 868 if (type > RTM_MAX)
873 goto err_inval; 869 goto err_inval;