From: Hiroaki SHIMODA Date: Wed, 26 Feb 2014 12:43:42 +0000 (+0900) Subject: sch_tbf: Fix potential memory leak in tbf_change(). X-Git-Tag: v3.14-rc6~30^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=724b9e1d75ab3401aaa081bd4efb440c1b3509db;p=pandora-kernel.git sch_tbf: Fix potential memory leak in tbf_change(). The allocated child qdisc is not freed in error conditions. Defer the allocation after user configuration turns out to be valid and acceptable. Fixes: cc106e441a63b ("net: sched: tbf: fix the calculation of max_size") Signed-off-by: Hiroaki SHIMODA Cc: Yang Yingliang Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed