summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-01-18 12:40:38 -0800
committerDavid S. Miller <davem@davemloft.net>2011-01-19 13:34:20 -0800
commitb8f3ab4290f1e720166e888ea2a1d1d44c4d15dd (patch)
tree88d5b71b27ed9ca0b5d67bd6ae61f592fb61fdc5 /net/core
parentff76015f3bdfbc482c723cb4f2559cef84d178ca (diff)
downloadop-kernel-dev-b8f3ab4290f1e720166e888ea2a1d1d44c4d15dd.zip
op-kernel-dev-b8f3ab4290f1e720166e888ea2a1d1d44c4d15dd.tar.gz
Revert "netlink: test for all flags of the NLM_F_DUMP composite"
This reverts commit 0ab03c2b1478f2438d2c80204f7fef65b1bca9cf. It breaks several things including the avahi daemon. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/rtnetlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index a5f7535..750db57 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -1820,7 +1820,7 @@ static int rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
if (kind != 2 && security_netlink_recv(skb, CAP_NET_ADMIN))
return -EPERM;
- if (kind == 2 && (nlh->nlmsg_flags & NLM_F_DUMP) == NLM_F_DUMP) {
+ if (kind == 2 && nlh->nlmsg_flags&NLM_F_DUMP) {
struct sock *rtnl;
rtnl_dumpit_func dumpit;
OpenPOWER on IntegriCloud