OSDN Git Service

HID: Use dynamic memory while sending report
authorZhihai Xu <zhihaixu@google.com>
Mon, 21 Apr 2014 19:05:42 +0000 (00:35 +0530)
committerMatthew Xie <mattx@google.com>
Tue, 6 May 2014 08:14:23 +0000 (01:14 -0700)
commitf11d21fa60be8a2cd072968bf5e1bb23ce5caabf
tree6979ff65e8f45a70865b2fa8dcbe79cf0060b9f9
parent538ec0f2e17dad8f44741c58b69ed287f5b7ff2c
HID: Use dynamic memory while sending report

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.

CL from qcom(Hemant Gupta)
Change-Id: Icc8cd4a4ecfd4bc30cbf848a7c865fcf9308ddf8
btif/src/btif_hh.c