Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

taprio: Add missing policy validation for flags

netlink policy validation for the 'flags' argument was missing.

Fixes: 4cfd5779bd6e ("taprio: Add support for txtime-assist mode")
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Vinicius Costa Gomes and committed by
David S. Miller
49c684d7 a9d62274

+1
+1
net/sched/sch_taprio.c
··· 767 767 [TCA_TAPRIO_ATTR_SCHED_CLOCKID] = { .type = NLA_S32 }, 768 768 [TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME] = { .type = NLA_S64 }, 769 769 [TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME_EXTENSION] = { .type = NLA_S64 }, 770 + [TCA_TAPRIO_ATTR_FLAGS] = { .type = NLA_U32 }, 770 771 }; 771 772 772 773 static int fill_sched_entry(struct nlattr **tb, struct sched_entry *entry,