Skip to content

Conversation

@PavelVPV
Copy link
Contributor

@PavelVPV PavelVPV commented Dec 1, 2025

Fix assertion failure when buf_rx_freed_notify() is called from ISR by replacing k_sched_lock with atomic_ptr operations for callback pointer access.

The scheduler lock is retained during callback execution in thread context to maintain backward compatibility, but is skipped in ISR context where it's not available.

Updated documentation to clarify the behavior difference between thread and ISR contexts.

Fix assertion failure when buf_rx_freed_notify() is called from ISR
by replacing k_sched_lock with atomic_ptr operations for callback
pointer access.

The scheduler lock is retained during callback execution in thread
context to maintain backward compatibility, but is skipped in ISR
context where it's not available.

Updated documentation to clarify the behavior difference between
thread and ISR contexts.

Signed-off-by: Pavel Vasilyev <[email protected]>
@PavelVPV PavelVPV force-pushed the fix_calling_sync_prim_on_isr branch from 870a19a to b13376b Compare December 1, 2025 15:19
@PavelVPV PavelVPV marked this pull request as ready for review December 1, 2025 15:20
@zephyrbot zephyrbot added area: Bluetooth ISO Bluetooth LE Isochronous Channels area: Bluetooth area: Bluetooth Host Bluetooth Host (excluding BR/EDR) labels Dec 1, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 1, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth ISO Bluetooth LE Isochronous Channels area: Bluetooth

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants