2005-05-05 19:14:43

by Gerrit Huizenga

[permalink] [raw]
Subject: [patch 09/21] CKRM: Add missing read_unlock

--
Content-Disposition: inline; filename=03a-missing_unlock


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-ckrm5/kernel/ckrm/ckrm.c
===================================================================
--- linux-2.6.12-rc3-ckrm5.orig/kernel/ckrm/ckrm.c 2005-05-05 09:35:04.000000000 -0700
+++ linux-2.6.12-rc3-ckrm5/kernel/ckrm/ckrm.c 2005-05-05 09:35:14.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;
}
}

--