]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: hold tcf_lock in netdevice notifier
authorCong Wang <cwang@twopensource.com>
Wed, 16 Jul 2014 21:25:31 +0000 (14:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2014 03:31:42 +0000 (20:31 -0700)
commitb9c870545955da984fa4eacb7596c7d1159e8851
tree0b1d32fe64e7157ac362a4d5778c9aae0cf5bfad
parente5fce8f46ff725f9999ca2cee386772a8fb16f78
net_sched: hold tcf_lock in netdevice notifier

We modify mirred action (m->tcfm_dev) in netdev event, we need to
prevent on-going mirred actions from reading freed m->tcfm_dev.
So we need to acquire this spin lock.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_mirred.c