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

Avoid malloc/free while in HCI callbacks #2219

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Avoid malloc/free while in HCI callbacks #2219

merged 1 commit into from
Jun 10, 2024

Conversation

earlephilhower
Copy link
Owner

Bluetooth operates at IRQ level, so using std::list (which needs to new and delete objects) is not legal. Use a fixed, preallocated vector instead.

Bluetooth operates at IRQ level, so using std::list (which needs to
new and delete objects) is not legal.  Use a fixed, preallocated
vector instead.
@earlephilhower earlephilhower merged commit eb0badd into master Jun 10, 2024
13 checks passed
@earlephilhower earlephilhower deleted the nomem branch June 10, 2024 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant