OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84a8ca8
)
android/ipc: Use proper handlers in ipc_handle_msg
author
Andrzej Kaczmarek
<andrzej.kaczmarek@tieto.com>
Sun, 12 Jan 2014 22:22:18 +0000
(23:22 +0100)
committer
Szymon Janc
<szymon.janc@tieto.com>
Mon, 13 Jan 2014 07:57:49 +0000
(08:57 +0100)
ipc_handle_msg() should use handlers passed as function parameter
instead of static one as otherwise Audio IPC will use incorrect
handlers.
android/ipc.c
patch
|
blob
|
history
diff --git
a/android/ipc.c
b/android/ipc.c
index
a31d315
..
ed3ef3c
100644
(file)
--- a/
android/ipc.c
+++ b/
android/ipc.c
@@
-82,7
+82,7
@@
int ipc_handle_msg(struct service_handler *handlers, size_t max_index,
}
/* opcode is table offset + 1 */
- handler = &
service
s[msg->service_id].handler[msg->opcode - 1];
+ handler = &
handler
s[msg->service_id].handler[msg->opcode - 1];
/* if payload size is valid */
if ((handler->var_len && handler->data_len > msg->len) ||