mirror of https://gitee.com/openkylin/linux.git
[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>
This commit is contained in:
parent
b9e3dd0ea1
commit
48d4ed7a86
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue