From: Eric Dumazet Date: Wed, 4 Jan 2012 06:22:24 +0000 (+0000) Subject: net_sched: sfq: fix mem alloc error recovery X-Git-Tag: v3.3-rc1~182^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd16a6cce2a7f169b559abc5672fd2c66e91fb36;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed