Skip to content

Conversation

@zbowling
Copy link

@zbowling zbowling commented Jan 1, 2026

Add NULL pointer checks for mt792x_sta_to_link() and mt792x_vif_to_link() results in critical paths to prevent kernel crashes during MLO operations.

Functions fixed:

  • mt7925_mac_link_sta_add() - Check mlink and mconf before use
  • mt7925_conf_tx() - Check mconf before use

These NULL checks prevent kernel crashes from NULL pointer dereferences during MLO link state transitions, especially during roaming or link removal operations.

Found by static analysis review.

@zbowling zbowling changed the title wifi: mt76: mt7925: add mutex protection in resume path wifi: mt76: mt7925: add NULL checks for MLO link operations Jan 1, 2026
Add NULL pointer checks for mt792x_sta_to_link() and mt792x_vif_to_link()
results in critical paths to prevent kernel crashes during MLO operations.

Found by static analysis review.
@zbowling zbowling force-pushed the fix-mt7925-null-checks-error-handling branch from ce60ac0 to f319dc1 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