commit | bd16a6cce2a7f169b559abc5672fd2c66e91fb36 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <eric.dumazet@gmail.com> | Wed Jan 04 06:22:24 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Wed Jan 04 14:12:48 2012 -0500 |
tree | a4407fbec170a8ed06bf52a6667d26c4fdd2a124 | |
parent | 6cfb5e759d47f037cbd0953ec2c3ceb220ed9e96 [diff] |
net_sched: sfq: fix mem alloc error recovery Since commit 817fb15dfd98 (net_sched: sfq: allow divisor to be a parameter), we can leave perturbation timer armed if a memory allocation error aborts sfq_init(). Memory containing active struct timer_list is freed and kernel can crash. Call sfq_destroy() from sfq_init() to properly dismantle qdisc. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>