From: Jamal Hadi Salim Date: Thu, 7 Dec 2006 04:06:25 +0000 (-0800) Subject: [GENETLINK]: Fix misplaced command flags. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=48d4ed7a86d70a7e381cc8e48a97312182093ce2;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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;