Re: [PATCH v2] net: sched: sch_taprio: fix memleak in error path for sched list parse

2019-08-08 Thread David Miller
From: Ivan Khoronzhuk Date: Wed, 7 Aug 2019 01:45:40 +0300 > In error case, all entries should be freed from the sched list > before deleting it. For simplicity use rcu way. > > Fixes: 5a781ccbd19e46 ("tc: Add support for configuring the taprio scheduler") > Acked-by: Vinicius Costa Gomes > Si

[PATCH v2] net: sched: sch_taprio: fix memleak in error path for sched list parse

2019-08-06 Thread Ivan Khoronzhuk
In error case, all entries should be freed from the sched list before deleting it. For simplicity use rcu way. Fixes: 5a781ccbd19e46 ("tc: Add support for configuring the taprio scheduler") Acked-by: Vinicius Costa Gomes Signed-off-by: Ivan Khoronzhuk --- net/sched/sch_taprio.c | 3 ++- 1 file