Skip to content

fix rmmod panic in bh_threaded #319

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

Closed
wants to merge 2 commits into from
Closed

Conversation

xhorn-pan
Copy link
Contributor

@xhorn-pan xhorn-pan commented May 6, 2025

request_threaded_irq with device_id, so free_irq should "release" it, otherwise rmmod would panic.

Summary by Bito

This pull request fixes a critical bug in bh_threaded.c by ensuring the free_irq function properly releases IRQs for buttons, preventing system panic during module removal and enhancing overall system stability. This enhancement is vital for maintaining overall system stability.

Unit tests added: False

Estimated effort to review (1-5, lower is better): 2

request_threaded_irq with device_id, so free_irq should "release" it, otherwise rmmod would panic.
@xhorn-pan xhorn-pan changed the title fix rmmod panic fix rmmod panic in bh_threaded May 6, 2025
fixed in fails
Copy link
Contributor

@jserv jserv left a comment

Choose a reason for hiding this comment

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

Check https://cbea.ms/git-commit/ and refine the commits. Also, consider to squash for review.

@xhorn-pan
Copy link
Contributor Author

Thanks for the advice, I will close this, fix the git log and start new one later

@xhorn-pan xhorn-pan closed this May 7, 2025
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.

None yet

2 participants