[patch 09/21] CKRM: Add missing read_unlock

From: gh
Date: Thu May 05 2005 - 14:18:19 EST


--
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 <sekharan@xxxxxxxxxx>
Signed-Off-By: Gerrit Huizenga <gh@xxxxxxxxxx>

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;
}
}

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/