OSDN Git Service

HID: Use dynamic memory while sending data
authorHemant Gupta <hemantg@codeaurora.org>
Mon, 21 Apr 2014 18:53:21 +0000 (00:23 +0530)
committerMatthew Xie <mattx@google.com>
Tue, 6 May 2014 08:14:24 +0000 (01:14 -0700)
commitad7a6009746430da82ad7d8ee4a4784db7087ae4
tree3d59b29cacfa0d49f1a4b967e6bbc4e2518b6062
parent8cd229d4765330b554eedd6919b9f41ca7989e7e
HID: Use dynamic memory while sending data

This patch uses dynamic memory allocation while sending HID output data to
remote device depending on size of data to be sent. Without this patch
fixed size static buffer of 200 bytes was being used for sending data to
remote device, which was resulting in crash in case data size to be sent
to remote device was greater than 200 bytes.

Change-Id: I5ed12422355e88d7ef0391668800d7619ca3b685
btif/src/btif_hh.c