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:
parent
5587df4d8e
commit
73035a29eb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue