<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: Gerrit Huizenga &lt;gh@us.ibm.com&gt;

Function returns without unlocking the readlock in a case.  This patch fixes
it.

Signed-Off-By: Chandra Seetharaman &lt;sekharan@us.ibm.com&gt;
Signed-Off-By: Gerrit Huizenga &lt;gh@us.ibm.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
---

 kernel/ckrm/ckrm.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN kernel/ckrm/ckrm.c~ckrm-add-missing-read_unlock kernel/ckrm/ckrm.c
--- 25/kernel/ckrm/ckrm.c~ckrm-add-missing-read_unlock	Wed Jul 13 14:44:02 2005
+++ 25-akpm/kernel/ckrm/ckrm.c	Wed Jul 13 14:44:02 2005
@@ -106,6 +106,7 @@ void *ckrm_classobj(char *classname, int
 			if (core-&gt;name &amp;&amp; !strcmp(core-&gt;name, classname)) {
 				/* FIXME:   should grep reference. */
 				*classtype_id = ctype-&gt;type_id;
+				read_unlock(&amp;ckrm_class_lock);
 				return core;
 			}
 		}
_
</pre></body></html>