Re: [PATCH 1/2] android/bluetooth: Set unpaired cb list to NULL while unregistering bt

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

 



Hi Grzegorz,

On Wednesday 03 of September 2014 15:17:12 Grzegorz Kolodziejczyk wrote:
> Unpaired callback list for profiles needs to be set to NULL while
> unregistering bluetooth. Other profiles may try to unregister and remove
> its unpair cb, this cause invalid read callback list.
> ---
>  android/bluetooth.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/android/bluetooth.c b/android/bluetooth.c
> index 8b47015..d275dea 100644
> --- a/android/bluetooth.c
> +++ b/android/bluetooth.c
> @@ -5281,4 +5281,5 @@ void bt_bluetooth_unregister(void)
>  	hal_ipc = NULL;
>  
>  	queue_destroy(unpaired_cb_list, NULL);
> +	unpaired_cb_list = NULL;
>  }

Both patches applied (after fixing typo in prefix of 2nd patch), thanks.

-- 
Best regards, 
Szymon Janc
--
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