]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: act: Delete estimator in error path.
authorHiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Mon, 6 Aug 2012 05:45:48 +0000 (05:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Aug 2012 20:30:01 +0000 (13:30 -0700)
commit172f6fefc66a6175f49565004e75a86c8cf414c8
treefbebbe0628917989117a97ddf5737ceda816bccf
parent1e41e0d5db4f7d4753464069d69cf62c5fbe832f
net_sched: act: Delete estimator in error path.

Some action modules free struct tcf_common in their error path
while estimator is still active. This results in est_timer()
dereference freed memory.
Add gen_kill_estimator() in ipt, pedit and simple action.

Signed-off-by: Hiroaki SHIMODA <shimoda.hiroaki@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_ipt.c
net/sched/act_pedit.c
net/sched/act_simple.c