diff options
author | Jamal Hadi Salim <hadi@cyberus.ca> | 2006-12-06 23:06:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-12-06 23:06:25 -0500 |
commit | 48d4ed7a86d70a7e381cc8e48a97312182093ce2 (patch) | |
tree | a23c8df3c67febebe23ab5b3c871b8e90ae22626 /net | |
parent | b9e3dd0ea167df1d7c118170551e08e8e28f27b6 (diff) |
[GENETLINK]: Fix misplaced command flags.
The command flags for dump and do were swapped..
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/netlink/genetlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index b5df749cba8f..548e4e6e698f 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c | |||
@@ -144,9 +144,9 @@ int genl_register_ops(struct genl_family *family, struct genl_ops *ops) | |||
144 | } | 144 | } |
145 | 145 | ||
146 | if (ops->dumpit) | 146 | if (ops->dumpit) |
147 | ops->flags |= GENL_CMD_CAP_DO; | ||
148 | if (ops->doit) | ||
149 | ops->flags |= GENL_CMD_CAP_DUMP; | 147 | ops->flags |= GENL_CMD_CAP_DUMP; |
148 | if (ops->doit) | ||
149 | ops->flags |= GENL_CMD_CAP_DO; | ||
150 | if (ops->policy) | 150 | if (ops->policy) |
151 | ops->flags |= GENL_CMD_CAP_HASPOL; | 151 | ops->flags |= GENL_CMD_CAP_HASPOL; |
152 | 152 | ||