summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2012-01-04 06:22:24 (GMT)
committerDavid S. Miller <davem@davemloft.net>2012-01-04 19:12:48 (GMT)
commitbd16a6cce2a7f169b559abc5672fd2c66e91fb36 (patch)
treea4407fbec170a8ed06bf52a6667d26c4fdd2a124 /init
parent6cfb5e759d47f037cbd0953ec2c3ceb220ed9e96 (diff)
downloadlinux-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 'init')
0 files changed, 0 insertions, 0 deletions