From 64448e3cf84827e658d85eaede3cab6caa5d13b6 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Fri, 12 Jun 2015 09:26:56 +0200 Subject: [PATCH] android/handsfree: Fix invalid size of SCO_OP_GET_FD command --- android/handsfree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/handsfree.c b/android/handsfree.c index f1ad5feb3..f2979265a 100644 --- a/android/handsfree.c +++ b/android/handsfree.c @@ -2924,7 +2924,7 @@ failed: static const struct ipc_handler sco_handlers[] = { /* SCO_OP_GET_FD */ - { bt_sco_get_fd, false, 0 } + { bt_sco_get_fd, false, sizeof(struct sco_cmd_get_fd) } }; static void bt_sco_unregister(void) -- 2.11.0