Re: [PATCH] android/hal: Fix receiving of commands with no response parameter

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

 



Hi Szymon,

On Tue, Oct 22, 2013 at 3:03 PM, Szymon Janc <szymon.janc@xxxxxxxxx> wrote:
> This fix receiving of error response in case command has no reply
> parameters.
> ---
>  android/hal-ipc.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/android/hal-ipc.c b/android/hal-ipc.c
> index 041441d..b264bfe 100644
> --- a/android/hal-ipc.c
> +++ b/android/hal-ipc.c
> @@ -260,6 +260,7 @@ int hal_ipc_cmd(uint8_t service_id, uint8_t opcode, uint16_t len, void *param,
>
>         if (!rsp || rsp_len == 0) {
>                 memset(&err, 0, sizeof(err));
> +               rsp_len = sizeof(err);
>                 rsp = &err;
>         }
>
> --
> 1.8.4

Pushed, thanks.


-- 
Luiz Augusto von Dentz
--
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