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)
committerZhihai Xu <zhihaixu@google.com>
Mon, 21 Apr 2014 20:32:03 +0000 (20:32 +0000)
commit79eb1a643a2e627e5fb2c9dae1cb6a56a15ff0cf
treeb95115488788cde9aeb6b4c5583f831e0005acd1
parentfbaeb4a7b64a89c08a98b53766e250eb7bad8830
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