Skip to content

GenericGattClient: Fix discovery termination. #6814

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2018

Conversation

pan-
Copy link
Member

@pan- pan- commented May 4, 2018

Description

The procedure should be terminated whenever the server returns an error not equal
to ATTRIBUTE_NOT_FOUND. The block was effectivelly terminated but the
procedure was not. As a result the discovery was operating on already
freed memory.

It should fixes #6806 .

Pull request type

[x] Fix
[ ] Refactor
[ ] New target
[ ] Feature
[ ] Breaking change

The procedure should be terminated whenever the server returns an error not equal
to ATTRIBUTE_NOT_FOUND. The block was effectivelly terminated but the
procedure was not. As a result the discovery was operating on already
freed memory.
@pan- pan- requested a review from donatieng May 4, 2018 10:35
@pan-
Copy link
Member Author

pan- commented May 4, 2018

@RobMeades Here's my fix for #6806, could you tell if it fixes the issue on your end; I've just tried with the application you attached with your ticket.

@donatieng Could you review ?

@RobMeades
Copy link
Contributor

Yup, confirmed that fixes issue #6806 for me.

Copy link
Contributor

@donatieng donatieng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@cmonr
Copy link
Contributor

cmonr commented May 7, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented May 7, 2018

Build : SUCCESS

Build number : 1929
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/6814/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented May 7, 2018

@mbed-ci
Copy link

mbed-ci commented May 7, 2018

@cmonr cmonr merged commit a5326ca into ARMmbed:master May 8, 2018
@pan- pan- deleted the fix-discovery-termination branch November 14, 2018 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BLE::GenericGattClient::DiscoveryControlBlock terminate() called twice
6 participants