[pulseaudio-discuss] [PATCH v5 16/39] bluetooth: Protect from a misbehaving bluetoothd
João Paulo Rechi Vita
jprvita at gmail.com
Tue Oct 1 06:38:15 PDT 2013
On Sun, Sep 29, 2013 at 9:56 AM, Tanu Kaskinen
<tanu.kaskinen at linux.intel.com> wrote:
> On Tue, 2013-09-24 at 19:45 -0300, jprvita at gmail.com wrote:
>> @@ -745,6 +748,15 @@ static void parse_interfaces_and_properties(pa_bluetooth_discovery *y, DBusMessa
>> dbus_message_iter_next(&element_i);
>> }
>>
>> + PA_HASHMAP_FOREACH(d, y->devices, state)
>> + if (!d->adapter && d->adapter_path) {
>> + d->adapter = pa_hashmap_get(d->discovery->adapters, d->adapter_path);
>> + if (!d->adapter) {
>> + pa_log_error("Device %s is child of nonexistent adapter %s", d->path, d->adapter_path);
>> + d->device_info_valid = -1;
>> + }
>> + }
>
> As discussed, the DEVICE_CONNECTION_CHANGED hook should be fired after
> parsing the device properties (I'm mentioning this just to make sure
> that I remember to check this in v6).
>
FTR: It has been agreed to fire the hook in this case.
--
João Paulo Rechi Vita
http://about.me/jprvita
More information about the pulseaudio-discuss
mailing list