Просмотр исходного кода

objdb: Fix incorrect using lock

It obviously is a typo, but it dose cause coredump easily

Signed-off-by: Lidong Zhong <lzhong@suse.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Lidong Zhong 11 лет назад
Родитель
Сommit
42c09a78d9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      exec/objdb.c

+ 1 - 1
exec/objdb.c

@@ -1412,7 +1412,7 @@ static int object_priv_get (
 	int res;
 	int res;
 	struct object_instance *object_instance;
 	struct object_instance *object_instance;
 
 
-	objdb_unlock();
+	objdb_lock();
 	res = hdb_handle_get (&object_instance_database,
 	res = hdb_handle_get (&object_instance_database,
 		object_handle, (void *)&object_instance);
 		object_handle, (void *)&object_instance);
 	if (res != 0) {
 	if (res != 0) {