OSDN Git Service

Bluetooth: Getbuf returning invalid buffer pointer
authorHemant Gupta <hemantg@codeaurora.org>
Fri, 12 Jul 2013 14:35:54 +0000 (20:05 +0530)
committerHemant Gupta <hemantg@codeaurora.org>
Tue, 15 Jul 2014 11:08:12 +0000 (16:38 +0530)
commit5ff866c6cf008ed5361c8a37256cb9656adc3cfc
tree368087748b1c6bcafbb3cc03b8658301dae7f6ea
parent02d9b7b41f1fcf21e798a4c0aabde89f00729d08
Bluetooth: Getbuf returning invalid buffer pointer

Getbuff is checking for the pool which can accommodate
requested size, but is changing the pool with a restricted
check and not checking for the free memory size in that pool.
Added a check to avoid returng the wrong pool free buf pointer.
Without this patch, SDP Codenomicon TestSuite crash is observed
on Bluedroid stack.

Change-Id: Id66d460c5a40d8c3208438d7cfaf729e9b355184
gki/common/gki_buffer.c