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)
committerZhihai Xu <zhihaixu@google.com>
Mon, 21 Apr 2014 19:17:54 +0000 (19:17 +0000)
commit45c71b0647cba0f199a8dfd1321c1b59a916cfe5
tree3c36f21306063da34bcdf14a1e2b28b00abbf863
parentbf51271f145204a0489597ccd9c851daa7ee0ad7
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