Skip to content

nimble/ll: Add missing NULL pointer check #2038

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mkasenberg
Copy link
Contributor

@mkasenberg mkasenberg commented May 20, 2025

Fixes a segmentation fault that occurred when canceling ext discovery.

@github-actions github-actions bot added controller size/XS Extra small PR labels May 20, 2025
@@ -920,6 +920,10 @@ ble_ll_sched_rmv_elem_type(uint8_t type, sched_remove_cb_func remove_cb)
OS_ENTER_CRITICAL(sr);

first = TAILQ_FIRST(&g_ble_ll_sched_q);
if (!first) {
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

OS_EXIT_CRITICAL is missing here

Fix potential NULL dereference that occurs when cancelling extended
discovery.
@mkasenberg
Copy link
Contributor Author

Force pushed to fix missing commit message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controller size/XS Extra small PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants