diff options
author | Hiroaki SHIMODA <shimoda.hiroaki@gmail.com> | 2014-02-26 13:43:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-27 18:53:50 +0100 |
commit | 724b9e1d75ab3401aaa081bd4efb440c1b3509db (patch) | |
tree | ad5545d23ed048dc2576eb8537446c3ccc421003 /net/mac80211/tx.c | |
parent | bonding: disallow enslaving a bond to itself (diff) | |
download | linux-724b9e1d75ab3401aaa081bd4efb440c1b3509db.tar.xz linux-724b9e1d75ab3401aaa081bd4efb440c1b3509db.zip |
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 <shimoda.hiroaki@gmail.com>
Cc: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/tx.c')
0 files changed, 0 insertions, 0 deletions