]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[NETFILTER] nfnetlink: netlink_run_queue() already checks for NLM_F_REQUEST
authorThomas Graf <tgraf@suug.ch>
Fri, 23 Mar 2007 18:17:57 +0000 (11:17 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:27:46 +0000 (22:27 -0700)
Patrick has made use of netlink_run_queue() in nfnetlink while my patches
have been waiting for net-2.6.22 to open. So this check for NLM_F_REQUEST
can go as well.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nfnetlink.c

index c37ed0156b07d06a5b874baa8244a1bd6ff73592..b0da853eabe0a81defd14547b573b8344d07f128 100644 (file)
@@ -204,10 +204,6 @@ static int nfnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
        if (security_netlink_recv(skb, CAP_NET_ADMIN))
                return -EPERM;
 
-       /* Only requests are handled by kernel now. */
-       if (!(nlh->nlmsg_flags & NLM_F_REQUEST))
-               return 0;
-
        /* All the messages must at least contain nfgenmsg */
        if (nlh->nlmsg_len < NLMSG_SPACE(sizeof(struct nfgenmsg)))
                return 0;