OSDN Git Service

BLE: Don't access freed buffer in log message
authorNitin Shivpure <nshivpur@codeaurora.org>
Tue, 6 Feb 2018 12:48:37 +0000 (18:18 +0530)
committerJakub Pawlowski <jpawlowski@google.com>
Fri, 13 Jul 2018 10:21:43 +0000 (10:21 +0000)
commit6c7c67817d426b243eba4b12cd8e13c6041d37a1
treecbde0c589856393ad1742d92552baee4a80e5ce7
parent3a0aab555f650ac46b33e4b0f0918dd34785474b
BLE: Don't access freed buffer in log message

When GATT fail to write data on L2CAP, buffer is freed by L2CAP.
Accessing the buffer leads to fatal failure while printing the message info.

Test: BLE discover services and BT off test cases

Fixes: 73018520
Change-Id: I661398fd1321f6e68026b3720db4965fd6584d70
Merged-In: I661398fd1321f6e68026b3720db4965fd6584d70
stack/gatt/att_protocol.c