]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: introduce tclass_del_notify()
authorWANG Cong <xiyou.wangcong@gmail.com>
Thu, 24 Aug 2017 23:51:28 +0000 (16:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Aug 2017 00:19:10 +0000 (17:19 -0700)
commitf9fadc223bb63452fd3a7f9ad48a8bef2215b731
tree5ce7c203e1f667ba798114a418bcf28ce655e384
parent426e35d719c4667b76c7d389a4ad179bb4883252
net_sched: introduce tclass_del_notify()

Like for TC actions, ->delete() is a special case,
we have to prepare and fill the notification before delete
otherwise would get use-after-free after we remove the
reference count.

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