From: Jamal Hadi Salim Date: Thu, 7 Dec 2006 04:06:25 +0000 (-0800) Subject: [GENETLINK]: Fix misplaced command flags. X-Git-Tag: v2.6.20-rc1~145^2^2~7^2~17 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=48d4ed7a86d70a7e381cc8e48a97312182093ce2;p=~emulex%2Finfiniband.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 b5df749cba8..548e4e6e698 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;