]> err.no Git - linux-2.6/blobdiff - net/netlink/genetlink.c
Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart
[linux-2.6] / net / netlink / genetlink.c
index b5df749cba8fe11746ed6f9bb5c363966233880c..c2996794eb25c0c939dcd52ae594e0727322e654 100644 (file)
@@ -144,9 +144,9 @@ int genl_register_ops(struct genl_family *family, struct genl_ops *ops)
        }
 
        if (ops->dumpit)
-               ops->flags |= GENL_CMD_CAP_DO;
-       if (ops->doit)
                ops->flags |= GENL_CMD_CAP_DUMP;
+       if (ops->doit)
+               ops->flags |= GENL_CMD_CAP_DO;
        if (ops->policy)
                ops->flags |= GENL_CMD_CAP_HASPOL;
 
@@ -310,7 +310,7 @@ static int genl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
        if (nlh->nlmsg_type < NLMSG_MIN_TYPE)
                goto ignore;
 
-               family = genl_family_find_byid(nlh->nlmsg_type);
+       family = genl_family_find_byid(nlh->nlmsg_type);
        if (family == NULL) {
                err = -ENOENT;
                goto errout;