From ffd32c71e47e1706d31eae95eaca654cc5ee0f7b Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 22 Oct 2013 14:03:58 +0200 Subject: [PATCH] android/hal: Fix receiving of commands with no response parameter 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 8d40271a4..9aac9c0de 100644 --- a/android/hal-ipc.c +++ b/android/hal-ipc.c @@ -153,6 +153,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; } -- 2.11.0