[patch 09/38] CKRM e18: Add missing read_unlock

Gerrit Huizenga
2005-06-23T06:47:40Z

[-- Attachment #1: 03a-missing_unlock --]
[-- Type: text/plain, Size: 777 bytes --]

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

Signed-Off-By: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-Off-By: Gerrit Huizenga <gh@us.ibm.com>

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

Index: linux-2.6.12-ckrm1/kernel/ckrm/ckrm.c
===================================================================
--- linux-2.6.12-ckrm1.orig/kernel/ckrm/ckrm.c 2005-06-20 13:08:29.000000000 -0700
+++ linux-2.6.12-ckrm1/kernel/ckrm/ckrm.c 2005-06-20 13:08:36.000000000 -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;
}
}

--