summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorDavide Caratti <dcaratti@redhat.com>2020-12-18 00:29:46 +0300
committerJakub Kicinski <kuba@kernel.org>2020-12-19 03:43:29 +0300
commit698285da79f5b0b099db15a37ac661ac408c80eb (patch)
treee09d0bd19ee78c881cfffa08118898d2692fab3d /net/ipv6
parentb27f0c7825e3774e9ba036b25ed4dd62aec4c4c9 (diff)
downloadlinux-698285da79f5b0b099db15a37ac661ac408c80eb.tar.xz
net/sched: sch_taprio: ensure to reset/destroy all child qdiscs
taprio_graft() can insert a NULL element in the array of child qdiscs. As a consquence, taprio_reset() might not reset child qdiscs completely, and taprio_destroy() might leak resources. Fix it by ensuring that loops that iterate over q->qdiscs[] don't end when they find the first NULL item. Fixes: 44d4775ca518 ("net/sched: sch_taprio: reset child qdiscs before freeing them") Fixes: 5a781ccbd19e ("tc: Add support for configuring the taprio scheduler") Suggested-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Davide Caratti <dcaratti@redhat.com> Link: https://lore.kernel.org/r/13edef6778fef03adc751582562fba4a13e06d6a.1608240532.git.dcaratti@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions