]> err.no Git - linux-2.6/blobdiff - net/sched/act_api.c
Merge branches 'release' and 'gpe-ack' into release
[linux-2.6] / net / sched / act_api.c
index 41fbd496abac19e0fe2c424653eca6a99528edb0..0b8eb235bc136fff1eeb349f72c549a5ce4df3df 100644 (file)
@@ -690,7 +690,7 @@ tcf_action_get_1(struct nlattr *nla, struct nlmsghdr *n, u32 pid)
        if (tb[TCA_ACT_INDEX] == NULL ||
            nla_len(tb[TCA_ACT_INDEX]) < sizeof(index))
                goto err_out;
-       index = *(int *)nla_data(tb[TCA_ACT_INDEX]);
+       index = nla_get_u32(tb[TCA_ACT_INDEX]);
 
        err = -ENOMEM;
        a = kzalloc(sizeof(struct tc_action), GFP_KERNEL);