Skip to content

Commit

Permalink
[GENETLINK]: Fix misplaced command flags.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jamal Hadi Salim authored and davem330 committed Dec 7, 2006
1 parent b9e3dd0 commit 48d4ed7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/netlink/genetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 48d4ed7

Please sign in to comment.