Skip to contentSkip to conversation

fix misplaced command flags

PATCH In review jamal 2 participants 2 messages Dec 6, 2006

Subsystems (2)
lore
Share & tools
lore

jamal

author
#0 lore raw

PATCH 1/1 fix misplaced command flags

fixes something i broke in previous patch. Against net-2.6.20. BTW, is it just me having problems syncing net-2.6.20?

cheers,
jamal

[GENETLINK] fix misplaced command flags

The command flags for dump and do were swapped..

---
commit 03b09fc1e8f71a14c661af496941b6de963fddf1
tree 3b3c62e1b5f1db0e75ab383a2ec43173cb0f0efa
parent 49ba7537cec41f0db2500054b5fde3c193c37a97
author Jamal Hadi Salim <[email protected]> Wed, 06 Dec 2006 11:58:34 -0500 committer Jamal Hadi Salim <[email protected]> Wed, 06 Dec 2006 11:58:34 -0500

 net/netlink/genetlink.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/netlink/genetlink.c +2 -2
index 3e37ea5..a59b7bb 100644
@@ -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;
 
maintainer
#1 lore raw

From: jamal <[email protected]>
Date: Wed, 06 Dec 2006 12:02:23 -0500

Quoted 2 lines

fixes something i broke in previous patch. Against net-2.6.20. BTW, is it just me having problems syncing net-2.6.20?

You should be using the net-2.6.git tree now, I blow away the net-2.6.X.git tree when 2.6.X integration starts happening and just do everything from net-2.6.git