android_kernel_samsung_msm8976/net/sched
Nikolay Aleksandrov 7cccea6dbc sch_fq_codel: avoid double free on init failure
commit 30c31d746d0eb458ae327f522bc8e4c44cbea0f0 upstream.

It is very unlikely to happen but the backlogs memory allocation
could fail and will free q->flows, but then ->destroy() will free
q->flows too. For correctness remove the first free and let ->destroy
clean up.

Fixes: 87b60cfacf9f ("net_sched: fix error recovery at qdisc creation")
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[bwh: Backported to 3.16: fq_codel used different alloc/free functions]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2019-07-27 21:45:13 +02:00
..
Kconfig
Makefile
act_api.c net sched actions: decrement module reference count after table flush. 2019-07-27 21:43:13 +02:00
act_csum.c
act_gact.c
act_ipt.c
act_mirred.c
act_nat.c
act_pedit.c
act_police.c
act_simple.c
act_skbedit.c
cls_api.c net sched filters: fix notification of filter delete with proper handle 2019-07-27 21:44:57 +02:00
cls_basic.c
cls_cgroup.c
cls_flow.c
cls_fw.c
cls_route.c
cls_rsvp.c
cls_rsvp.h
cls_rsvp6.c
cls_tcindex.c
cls_u32.c
em_canid.c
em_cmp.c
em_ipset.c
em_meta.c net/sched: em_meta: Fix 'meta vlan' to correctly recognize zero VID frames 2019-07-27 21:43:07 +02:00
em_nbyte.c
em_text.c
em_u32.c
ematch.c
sch_api.c net_sched: fix error recovery at qdisc creation 2019-07-27 21:45:10 +02:00
sch_atm.c
sch_blackhole.c
sch_cbq.c sch_cbq: fix null pointer dereferences on init failure 2019-07-27 21:45:12 +02:00
sch_choke.c
sch_codel.c
sch_drr.c
sch_dsmark.c
sch_fifo.c
sch_fq_codel.c sch_fq_codel: avoid double free on init failure 2019-07-27 21:45:13 +02:00
sch_generic.c
sch_gred.c
sch_hfsc.c sch_hfsc: fix null pointer deref and double free on init failure 2019-07-27 21:45:11 +02:00
sch_htb.c sch_htb: fix crash on init failure 2019-07-27 21:45:11 +02:00
sch_ingress.c
sch_mq.c net_sched: fix error recovery at qdisc creation 2019-07-27 21:45:10 +02:00
sch_mqprio.c net_sched: fix error recovery at qdisc creation 2019-07-27 21:45:10 +02:00
sch_multiq.c sch_multiq: fix double free on init failure 2019-07-27 21:45:11 +02:00
sch_netem.c sch_netem: avoid null pointer deref on init failure 2019-07-27 21:45:12 +02:00
sch_plug.c
sch_prio.c
sch_qfq.c
sch_red.c
sch_sfb.c
sch_sfq.c
sch_tbf.c sch_tbf: fix two null pointer dereferences on init failure 2019-07-27 21:45:13 +02:00
sch_teql.c