Skip to content

Conversation

@zbowling
Copy link

@zbowling zbowling commented Jan 1, 2026

Add mutex protection around mt7925_mcu_set_deep_sleep() and mt7925_mcu_regd_update() calls in the resume path to prevent potential race conditions during resume operations.

These MCU operations require serialization, and the resume path was the only call site missing mutex protection.

Found by static analysis (sparse/coccinelle).

Fixes a race condition where MCU operations during resume could occur concurrently with other operations, potentially causing system instability.

Add mutex protection around mt7925_mcu_set_deep_sleep() and
mt7925_mcu_regd_update() calls in the resume path to prevent
potential race conditions during resume operations.

These MCU operations require serialization, and the resume
path was the only call site missing mutex protection.

Found by static analysis (sparse/coccinelle).
@zbowling zbowling force-pushed the fix-mt7925-resume-mutex branch from 09bc6ca to 66a3f66 Compare January 1, 2026 23:42
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.

1 participant