Avoid malloc/free while in HCI callbacks #2219

Merged
earlephilhower merged 1 commits from nomem into master 2024-06-11 02:38:50 +03:00
earlephilhower commented 2024-06-11 02:18:29 +03:00 (Migrated from github.com)

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.
Sign in to join this conversation.