-- 

----------------------------------------------------------------------
    Chandra Seetharaman               | Be careful what you choose....
              - [EMAIL PROTECTED]   |      .......you may get it.
----------------------------------------------------------------------
Function returns without unlocking the readllock in a case.
This patch fixes it.

This patch applies over PATCH 3/5 of Gerrit's recent patchset.

Index: linux-2.6.12-rc1/kernel/ckrm/ckrm.c
===================================================================
--- linux-2.6.12-rc1.orig/kernel/ckrm/ckrm.c
+++ linux-2.6.12-rc1/kernel/ckrm/ckrm.c
@@ -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;
                        }
                }

Reply via email to