diff -NurpP --minimal linux-2.4.24-vs1.22/kernel/vcontext.c linux-2.4.24-vs1.23/kernel/vcontext.c --- linux-2.4.24-vs1.22/kernel/vcontext.c Mon Jan 5 20:24:21 2004 +++ linux-2.4.24-vs1.23/kernel/vcontext.c Mon Jan 12 05:03:14 2004 @@ -171,14 +171,17 @@ void vx_assign_info (struct task_struct */ void vx_release_info (struct task_struct *p) { - spin_lock (&ctx_ref_lock); + spin_lock(&ctx_ref_lock); if (p->s_info) { if (atomic_dec_and_test(&p->s_info->refcount)) { - kfree(p->s_info); + struct context_info *s_info; + + s_info = p->s_info; p->s_info = NULL; + kfree(s_info); } } - spin_unlock (&ctx_ref_lock); + spin_unlock(&ctx_ref_lock); } /*