If two board entries share the same .end or .start the loop clears both bits and decrements sf_used twice.
Protect by using MPASS(sf->sf_used > 0); in front of the decrement.
Details
Details
- Reviewers
tuexen - Group Reviewers
Src Committers Contributor Reviews (src) transport
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
I think this patch would just hide bugs related to the accounting done using sf_used. There are four occurrences of sf->sf_used--. You might want to protect all of them by adding MPASS(sf->sf_used > 0); in front of the decrement.