提交 48d4ed7a 编写于 作者: J Jamal Hadi Salim 提交者: David S. Miller

[GENETLINK]: Fix misplaced command flags.

The command flags for dump and do were swapped..
Signed-off-by: NJamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b9e3dd0e
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册