Re: [PATCH] android/gatt: Fix passing wrong event len in le dev found

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

 



Hi Grzegorz,

On Wednesday 02 of April 2014 13:36:57 Grzegorz Kolodziejczyk wrote:
> This fix wrong notification length passing to ipc.
> ---
>  android/gatt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/android/gatt.c b/android/gatt.c
> index 8bd7028..5069f98 100644
> --- a/android/gatt.c
> +++ b/android/gatt.c
> @@ -604,7 +604,7 @@ static void le_device_found_handler(const bdaddr_t *addr, uint8_t addr_type,
>  
>  	ipc_send_notif(hal_ipc, HAL_SERVICE_ID_GATT,
>  						HAL_EV_GATT_CLIENT_SCAN_RESULT,
> -						sizeof(ev) + ev->len, ev);
> +						sizeof(*ev) + ev->len, ev);
>  
>  connect:
>  	if (!is_device_wating_for_connect(addr, addr_type))
> 

Patch applied, thanks.

I've also fixed missing length checks on HAL side.

-- 
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