Re: [PATCH BlueZ v4 01/15] core: Fix missing g_io_channel_ref

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

 



On Thu, Aug 30, 2012 at 8:34 PM, Johan Hedberg <johan.hedberg@xxxxxxxxx> wrote:
> Hi João Paulo,
>
> On Thu, Aug 30, 2012, João Paulo Rechi Vita wrote:
>> ---
>>  src/device.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/src/device.c b/src/device.c
>> index 3b44d9b..2c40ec2 100644
>> --- a/src/device.c
>> +++ b/src/device.c
>> @@ -2027,7 +2027,7 @@ static gboolean att_connect(gpointer user_data)
>>               return FALSE;
>>       }
>>
>> -     device->att_io = io;
>> +     device->att_io = g_io_channel_ref(io);
>>
>>       return FALSE;
>>  }
>
> This doesn't look right to me. bt_io_connect returns a reference for the
> caller and you shouldn't need to re-increment the ref count again unless
> you store a pointer in multiple places (which you don't). If this patch
> fixes some behavior the real bug must be somewhere else.
>

Yes, this became wrong due to spliting this code out of "core:
Mutually exclude concurrent connections". I'll fix that and re-send
the series one more time.

-- 
João Paulo Rechi Vita
Openbossa Labs - INdT
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux