Skip to content

Commit 49c684d

Browse files
vcgomesdavem330
authored andcommitted
taprio: Add missing policy validation for flags
netlink policy validation for the 'flags' argument was missing. Fixes: 4cfd577 ("taprio: Add support for txtime-assist mode") Signed-off-by: Vinicius Costa Gomes <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a9d6227 commit 49c684d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/sched/sch_taprio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,7 @@ static const struct nla_policy taprio_policy[TCA_TAPRIO_ATTR_MAX + 1] = {
767767
[TCA_TAPRIO_ATTR_SCHED_CLOCKID] = { .type = NLA_S32 },
768768
[TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME] = { .type = NLA_S64 },
769769
[TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME_EXTENSION] = { .type = NLA_S64 },
770+
[TCA_TAPRIO_ATTR_FLAGS] = { .type = NLA_U32 },
770771
};
771772

772773
static int fill_sched_entry(struct nlattr **tb, struct sched_entry *entry,

0 commit comments

Comments
 (0)