From: Gerrit Huizenga Function returns without unlocking the readlock in a case. This patch fixes it. Signed-Off-By: Chandra Seetharaman Signed-Off-By: Gerrit Huizenga Signed-off-by: Andrew Morton --- 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->name && !strcmp(core->name, classname)) { /* FIXME: should grep reference. */ *classtype_id = ctype->type_id; + read_unlock(&ckrm_class_lock); return core; } } _