My initial comment on this patch is that I do not see where the host entry reference count is being incremented prior to the H_LOCK being released. The reason for holding the H_LOCK is to ensure that the host entry is not removed from the hash table while it is in use. Therefore, we must obtain a local reference to the object while we are using it. That way the H_LOCK can be freed without concern. A failure to do so can result in the host entry being freed.
Jeffrey Altman
smime.p7s
Description: S/MIME Cryptographic Signature
