Function returns without unlocking the readlock in a case.
This patch fixes it.
Signed-Off-By: Chandra Seetharaman <[EMAIL PROTECTED]>
Signed-Off-By: Gerrit Huizenga <[EMAIL PROTECTED]>
ckrm.c | 1 +
1 files changed, 1 insertion(+)
Index: linux-2.6.12-rc3-ckrm2/kernel/ckrm/ckrm.c
===================================================================
--- linux-2.6.12-rc3-ckrm2.orig/kernel/ckrm/ckrm.c 2005-04-26
19:13:30.895647477 -0700
+++ linux-2.6.12-rc3-ckrm2/kernel/ckrm/ckrm.c 2005-04-26 19:13:39.368622077
-0700
@@ -106,6 +106,7 @@ void *ckrm_classobj(char *classname, int
if (core->name && !strcmp(core->name, classname)) {
/* FIXME: should grep reference. */
*classtype_id = ctype->type_id;
+ read_unlock(&ckrm_class_lock);
return core;
}
}
--
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech