aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/act_api.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-01-23 23:35:03 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:11:21 -0500
commit1587bac49f8491b5006a78f8d726111b71757941 (patch)
tree753e9fb452917efd9da6751fa4c6a45442c9fb8d /net/sched/act_api.c
parent24beeab539c6f42c4a93e2ff7c3b5f272e60da45 (diff)
[NET_SCHED]: Use typeful attribute parsing helpers
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_api.c')
-rw-r--r--net/sched/act_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c
index 41fbd496abac..0b8eb235bc13 100644
--- a/net/sched/act_api.c
+++ b/net/sched/act_api.c
@@ -690,7 +690,7 @@ tcf_action_get_1(struct nlattr *nla, struct nlmsghdr *n, u32 pid)
690 if (tb[TCA_ACT_INDEX] == NULL || 690 if (tb[TCA_ACT_INDEX] == NULL ||
691 nla_len(tb[TCA_ACT_INDEX]) < sizeof(index)) 691 nla_len(tb[TCA_ACT_INDEX]) < sizeof(index))
692 goto err_out; 692 goto err_out;
693 index = *(int *)nla_data(tb[TCA_ACT_INDEX]); 693 index = nla_get_u32(tb[TCA_ACT_INDEX]);
694 694
695 err = -ENOMEM; 695 err = -ENOMEM;
696 a = kzalloc(sizeof(struct tc_action), GFP_KERNEL); 696 a = kzalloc(sizeof(struct tc_action), GFP_KERNEL);