On Wednesday 15 August 2007 07:49, Johannes Berg wrote: > Is there a possibility of a race condition here? If the interface is > brought down right after this check the SKB could be copied to that > interface after the skb queue has been flushed. > Yeah. This can be avoided by holding a write lock on the subif lock while flushing the skb queue. Not sure how much I like doing that, but it should work. -Michael Wu
Attachment:
pgpLdQJVeH5gq.pgp
Description: PGP signature