]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commitdiff
cls_can: Fixed nla_policy.
authorRostislav Lisovy <lisovy@gmail.com>
Mon, 23 Jan 2012 12:18:24 +0000 (13:18 +0100)
committerRostislav Lisovy <lisovy@gmail.com>
Mon, 23 Jan 2012 12:18:24 +0000 (13:18 +0100)
net/sched/cls_can.c

index 34f00c06ec131a2b54e7c89abae2cd4b8eaffe21..815ee05f7bcb2b10b3025c00740ccf876f3d71be 100644 (file)
@@ -54,10 +54,10 @@ enum {
 #define TCA_CANFLTR_MAX (__TCA_CANFLTR_MAX - 1)
 
 static const struct nla_policy canfltr_policy[TCA_CANFLTR_MAX + 1] = {
-       [TCA_CANFLTR_CLASSID]    = { .type = NLA_U32 },
-       /* FIXME Be aware of possible problems with 64bit kernel and
-               32bit userspace etc. */
-       [TCA_CANFLTR_RULES]      = { /*.len = (sizeof(struct can_filter))*/ } /* FIXME */
+       [TCA_CANFLTR_CLASSID]    = { .type = NLA_U32 }, /* Be aware of possible
+                                               problems with 64bit kernel and
+                                               32bit userspace etc. */
+       [TCA_CANFLTR_RULES]      = { .type = NLA_NESTED }
 };
 
 struct canfltr_rules {