diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-01-04 06:22:24 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-04 19:12:48 (GMT) |
commit | bd16a6cce2a7f169b559abc5672fd2c66e91fb36 (patch) | |
tree | a4407fbec170a8ed06bf52a6667d26c4fdd2a124 /kernel/elfcore.c | |
parent | 6cfb5e759d47f037cbd0953ec2c3ceb220ed9e96 (diff) | |
download | linux-bd16a6cce2a7f169b559abc5672fd2c66e91fb36.tar.xz |
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>
Diffstat (limited to 'kernel/elfcore.c')
0 files changed, 0 insertions, 0 deletions