Commit: 84ee3a8f76214bd2e1ad84dc915a9f2b64cb7832
Parent: 9469ea039ea8dcc4e1982b3ac9cbf703d192fe46
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-06-26 00:08:36
Tree: 9f68a538c8ecdbf8393d49353eca5742811fa4cd

shared/gatt-client: Fix freeing instance while processing notification If CCC fails to be programmed the callback would be run without taking a reference which may lead to freeing the client instance while there are still notification to be processed. To fix this handling of both success and failure to program the CCC will now take a reference to the client, also in case of failure instead of attempting to program the CCC once again the code now notify all the queued requests which is consistent with how the success case is handled.

Diffstat

M src/shared/gatt-client.c | 46 ++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - -

1 files changed, 20 insertions(+), 26 deletions(-)

View Full Diff | Patch