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)
commit47fd92f5a76eb3f5b407773766e7d7fa1a179419
treefbebbe0628917989117a97ddf5737ceda816bccf
parent9871f1ad677d95ffeca80e2c21b70af9bfc9cc91
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