From 783f7b5ccd3d34d43687f4c1f18405ab88e45e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 27 Jun 2003 03:25:24 +0000 Subject: [PATCH] Now gives its recursive lock a name and checks its return code. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3679 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kernel/core/module.c b/src/kernel/core/module.c index a218d2a379..913cd5ca2f 100644 --- a/src/kernel/core/module.c +++ b/src/kernel/core/module.c @@ -762,7 +762,8 @@ nextModuleImage: status_t module_init(kernel_args *ka, module_info **sys_module_headers) { - recursive_lock_create(&gModulesLock); + if (recursive_lock_init(&gModulesLock, "modules rlock") < B_OK) + return B_ERROR; gModulesHash = hash_init(MODULE_HASH_SIZE, 0, module_compare, module_hash); if (gModulesHash == NULL)