Parent: 111186b3bf80c2cbe008dd3625badc0d5c32f896
Author: Arman Uguray <armansito@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-12-09 14:48:55
Tree: c8173b1b4012a8f050ff93b3930e92a72c29e492
shared/att: cancel_all before calling disconnect cb Moved the call to bt_att_cancel_all to before the call to the registered disconnect callbacks in bt_att's internal disconnect handler to make sure that all affected user_data is destroyed. This is to prevent cases of invalid access, where a user_data destroy function refers to data that the upper layer might free in the disconnect callback.
Diffstat
| M | src/shared/att.c | | | 4 | ++- - |
1 files changed, 2 insertions(+), 2 deletions(-)