OSDN Git Service

Use osi_free with osi_calloc in HCI layer to avoid corruption
authorSharvil Nanavati <sharvil@google.com>
Fri, 29 Aug 2014 08:35:03 +0000 (01:35 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Mon, 16 Mar 2015 23:51:30 +0000 (16:51 -0700)
commit2a72bd3fc0d440e91dba38e8994fae4279f0ff46
tree81389953d0c63f867521fb61183a3531221bc8a3
parent5fd55c3541183ec7b50ee17c0e712d90d3c5b861
Use osi_free with osi_calloc in HCI layer to avoid corruption

There was a mismatch where the free function was GKI_free for a
pointer allocated with osi_calloc. This resulted in GKI exceptions
being thrown if the adapter goes through enable -> disable -> enable
-> disable without terminating the process.
hci/src/hci_layer.c