]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sched/cls_tcindex.c
[NET_SCHED]: cls_tcindex: fix compatibility breakage
[linux-2.6-omap-h63xx.git] / net / sched / cls_tcindex.c
index 040e2d2d281a61413750a2a407624cce2c31f656..7563fdcef4b764e104636baef055bdf6542d356e 100644 (file)
@@ -245,9 +245,9 @@ tcindex_set_parms(struct tcf_proto *tp, unsigned long base, u32 handle,
        }
 
        if (tb[TCA_TCINDEX_SHIFT-1]) {
-               if (RTA_PAYLOAD(tb[TCA_TCINDEX_SHIFT-1]) < sizeof(u16))
+               if (RTA_PAYLOAD(tb[TCA_TCINDEX_SHIFT-1]) < sizeof(int))
                        goto errout;
-               cp.shift = *(u16 *) RTA_DATA(tb[TCA_TCINDEX_SHIFT-1]);
+               cp.shift = *(int *) RTA_DATA(tb[TCA_TCINDEX_SHIFT-1]);
        }
 
        err = -EBUSY;