summaryrefslogtreecommitdiff
path: root/crypto/api.c
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2010-07-22 18:45:04 +0000
committerDavid S. Miller <davem@davemloft.net>2010-07-24 21:04:20 -0700
commit3b87956ea645fb4de7e59c7d0aa94de04be72615 (patch)
tree0dde04e6dfad7cd76afbb31eff72a8f08a574a9c /crypto/api.c
parent76ac21f5ef30e46397e405695eb1240ff0955209 (diff)
downloadlinux-3.10-3b87956ea645fb4de7e59c7d0aa94de04be72615.tar.gz
linux-3.10-3b87956ea645fb4de7e59c7d0aa94de04be72615.tar.bz2
linux-3.10-3b87956ea645fb4de7e59c7d0aa94de04be72615.zip
net sched: fix race in mirred device removal
This fixes hang when target device of mirred packet classifier action is removed. If a mirror or redirection action is configured to cause packets to go to another device, the classifier holds a ref count, but was assuming the adminstrator cleaned up all redirections before removing. The fix is to add a notifier and cleanup during unregister. The new list is implicitly protected by RTNL mutex because it is held during filter add/delete as well as notifier. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Jamal Hadi Salim <hadi@cyberus.ca> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/api.c')
0 files changed, 0 insertions, 0 deletions