]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/netlink/genetlink.c
[NETLINK]: Ignore control messages directly in netlink_run_queue()
[net-next-2.6.git] / net / netlink / genetlink.c
index c2996794eb25c0c939dcd52ae594e0727322e654..95391e609046841eb88e2b16df193594d4b1d09a 100644 (file)
@@ -304,12 +304,6 @@ static int genl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
        struct genlmsghdr *hdr = nlmsg_data(nlh);
        int hdrlen, err = -EINVAL;
 
-       if (!(nlh->nlmsg_flags & NLM_F_REQUEST))
-               goto ignore;
-
-       if (nlh->nlmsg_type < NLMSG_MIN_TYPE)
-               goto ignore;
-
        family = genl_family_find_byid(nlh->nlmsg_type);
        if (family == NULL) {
                err = -ENOENT;
@@ -367,9 +361,6 @@ static int genl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
        *errp = err = ops->doit(skb, &info);
        return err;
 
-ignore:
-       return 0;
-
 errout:
        *errp = err;
        return -1;