From: Jamal Hadi Salim Date: Thu, 7 Dec 2006 04:06:25 +0000 (-0800) Subject: [GENETLINK]: Fix misplaced command flags. X-Git-Tag: Ubuntu-5.10.0-12.13~50716^2^2~7^2~17 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=48d4ed7a86d70a7e381cc8e48a97312182093ce2;p=mirror_ubuntu-hirsute-kernel.git [GENETLINK]: Fix misplaced command flags. The command flags for dump and do were swapped.. Signed-off-by: Jamal Hadi Salim Signed-off-by: David S. Miller --- 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) } 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;