Module Name: src Committed By: pooka Date: Wed Mar 3 17:58:37 UTC 2010 Modified Files: src/sys/kern: kern_module.c Log Message: Replace unsafe use of TAILQ_FOREACH: as the comment says, the structures are pulled off the list in the loop and it's anyone's guess where they go after that.
... i recommend using TAILQ_FOREACH_SAFE(). :-)