From 21f3e91fc41323c538214853007d65dd272c5bef Mon Sep 17 00:00:00 2001 From: Rostislav Lisovy Date: Mon, 23 Jan 2012 13:18:24 +0100 Subject: [PATCH 1/1] cls_can: Fixed nla_policy. --- net/sched/cls_can.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/sched/cls_can.c b/net/sched/cls_can.c index 34f00c06ec1..815ee05f7bc 100644 --- a/net/sched/cls_can.c +++ b/net/sched/cls_can.c @@ -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 { -- 2.39.2