Skip to content
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

Bluetooth: HFP: Fix session pointer invalid issue #69591

Merged
merged 1 commit into from
Mar 4, 2024
Merged

Bluetooth: HFP: Fix session pointer invalid issue #69591

merged 1 commit into from
Mar 4, 2024

Conversation

lylezhu2012
Copy link
Contributor

The dlc->session is invalid in the callback hfp_hf_disconnected. The behavior of obtaining an ACL connection handle through an invalid pointer is unknown.

Add a field "struct bt_conn *acl" to "struct bt_hfp_hf". Save acl connect handle to "struct bt_hfp_hf::acl" in function bt_hfp_hf_accept.

@jhedberg jhedberg changed the title Bluetooth: Host: Fix session pointer invalid issue Bluetooth: HFP: Fix session pointer invalid issue Feb 29, 2024
@jhedberg
Copy link
Member

@lylezhu2012 since this is about a specific profile (HFP), I think it'd be more appropriate to use "Bluetooth: HFP: ..." in the commit title instead of "Bluetooth: Host: ...". I already fixed it for the PR title, but could you do the same for the commit too? Thanks.

@alwa-nordic alwa-nordic removed their request for review February 29, 2024 08:37
The dlc->session is invalid in the callback
hfp_hf_disconnected. The behavior of obtaining
an ACL connection handle through an invalid
pointer is unknown.

Add a field "struct bt_conn *acl" to "struct
bt_hfp_hf". Save acl connect handle to "struct
bt_hfp_hf::acl" in function bt_hfp_hf_accept.

Signed-off-by: Lyle Zhu <[email protected]>
@lylezhu2012
Copy link
Contributor Author

@lylezhu2012 since this is about a specific profile (HFP), I think it'd be more appropriate to use "Bluetooth: HFP: ..." in the commit title instead of "Bluetooth: Host: ...". I already fixed it for the PR title, but could you do the same for the commit too? Thanks.

Yes. It is done.

@aescolar aescolar merged commit 5bd03fd into zephyrproject-rtos:main Mar 4, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Classic Bluetooth Classic (BR/EDR) area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants