commit | b7c14fb68b1cf6fa69b0e5b1d5af88dd001f58f9 | [log] [tgz] |
---|---|---|
author | Sonny Sasaka <sonnysasaka@chromium.org> | Thu Apr 11 18:14:09 2019 |
committer | Sonny Sasaka <sonnysasaka@chromium.org> | Thu Apr 11 18:14:21 2019 |
tree | 15a5d4d352953932c5d3ea6a0001497d33e411ec | |
parent | 33b23423f43776207e396c15388f39f441b94564 [diff] |
gatt: Fix double free When todo->data is passed to a function and the function returns success, we should always set todo->data to NULL to mark that this sg ownership has been transferred to the called function. BUG=chromium:805112 TEST=Tested with HID over GATT write report. Change-Id: Icfffe4ea70d864fb03935d0f8d6977c6f4512e8d