Przeglądaj źródła

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 lat temu
rodzic
commit
42c09a78d9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      exec/objdb.c

+ 1 - 1
exec/objdb.c

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