Re: [PATCH] objdb: Fix incorrect using lock(for v1.4.7)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nice catch, nice patch. I've commited it as
42c09a78d9ed2dc393e76308f4fce000535674e6.

Thanks,
  Honza

Lidong Zhong napsal(a):
> It obviously is a typo, but it dose cause coredump easily
> 
> Signed-off-by: Lidong Zhong <lzhong@xxxxxxxx>
> ---
>  exec/objdb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/exec/objdb.c b/exec/objdb.c
> index 5d7c124..da1270d 100644
> --- a/exec/objdb.c
> +++ b/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) {
> 

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss




[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux