]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: sched: cls_u32: make sure that divisor is a power of 2
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 8 Oct 2018 10:22:35 +0000 (06:22 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 17:33:35 +0000 (10:33 -0700)
commit2f0c982df7b146f9aa695ede91b48392ab4c3217
tree053c7a370765fcf2f8afa60dffef94d29e86b1c2
parent27594ec4b6a7035450ba43624d1648cbd2c0aaea
net: sched: cls_u32: make sure that divisor is a power of 2

Tested by modifying iproute2 to allow sending a divisor > 255

Tested-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_u32.c