commit | c87b4ecdbe8db27867a7b7f840291cd843406bd7 | [log] [tgz] |
---|---|---|
author | Toke Høiland-Jørgensen <toke@redhat.com> | Thu Apr 04 15:01:33 2019 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu Apr 04 10:55:59 2019 -0700 |
tree | 745972ccb1eada0d1672c97b65bbde019890316c | |
parent | b2100cc56fca8c51d28aa42a9f1fbcb2cf351996 [diff] |
sch_cake: Make sure we can write the IP header before changing DSCP bits There is not actually any guarantee that the IP headers are valid before we access the DSCP bits of the packets. Fix this using the same approach taken in sch_dsmark. Reported-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk> Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>