diff options
Diffstat (limited to 'net/sched/act_api.c')
-rw-r--r-- | net/sched/act_api.c | 2 |
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); |