Apply Ricardo's spl-02-condvar-poison.patch

Fix too early memory poisoning on condvars.



git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@147 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
behlendo 2008-08-04 23:59:08 +00:00
parent 5587df4d8e
commit 73035a29eb
1 changed files with 1 additions and 1 deletions

View File

@ -78,8 +78,8 @@ __cv_destroy(kcondvar_t *cvp)
if (cvp->cv_name)
kmem_free(cvp->cv_name, cvp->cv_name_size);
memset(cvp, CV_POISON, sizeof(*cvp));
spin_unlock(&cvp->cv_lock);
memset(cvp, CV_POISON, sizeof(*cvp));
EXIT;
}
EXPORT_SYMBOL(__cv_destroy);