Skip to content

Conversation

@Olivier-ProGlove
Copy link
Contributor

att_reset() destroys all ATT reqs (using att_req_destroy) and empty the ATT req queue.

Calling att_handle_rsp() after the loop will use an invalid ATT req (all the ATT reqs have been memset(0)) - so the notified ATT req function called here is NULL.

This change move the outstanding req notification before destroying all ATT reqs.

Signed-off-by: Olivier Martin [email protected]

`att_reset()` destroys all ATT reqs (using `att_req_destroy`) and
empty the ATT req queue.

Calling `att_handle_rsp()` after the loop will use an invalid ATT
req (all the ATT reqs have been `memset(0)`) - so the notified ATT
req function called
[here](https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/bluetooth/host/att.c#L325)
is `NULL`.

This change move the outstanding req notification before destroying
all ATT reqs.

Signed-off-by: Olivier Martin <[email protected]>
Copy link
Contributor

@Vudentz Vudentz left a comment

Choose a reason for hiding this comment

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

This assumes the current request is also part of the list which is not how it was intended, so perhaps we have a but somewhere else?

@Olivier-ProGlove
Copy link
Contributor Author

I will close this PR when my new PR #11574 would have been accepted.
This current PR hides the real issue.

@aescolar
Copy link
Member

Hi @Olivier-ProGlove . This PR has been standing for several months now without any activity. The PR you linked to (#11574) as precondition to close this one, seems to be blocked.
How would you like to proceed?

@aescolar
Copy link
Member

This PR has no had any activity for almost a year. I will therefore close it under the assumption that the author (@Olivier-ProGlove) has lost interest. If that is not the case, please reopen it.

@aescolar aescolar closed this Sep 30, 2019
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.

3 participants