Page MenuHomeFreeBSD

Correct logic error
ClosedPublic

Authored by allanjude on Jun 16 2018, 1:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Aug 21 2025, 7:58 AM
Unknown Object (File)
Jun 26 2025, 5:37 PM
Unknown Object (File)
Jun 25 2025, 10:32 AM
Unknown Object (File)
Jun 24 2025, 12:35 PM
Unknown Object (File)
Jun 23 2025, 5:02 PM
Unknown Object (File)
Jun 23 2025, 4:27 PM
Unknown Object (File)
Jun 17 2025, 5:34 PM
Unknown Object (File)
Jun 17 2025, 8:27 AM
Subscribers
None

Details

Summary

While investigating an issue with GELI boot, I found what looks like a logic error. The contents of the if statement are definately meant to run if disk_ioctl successed, but actually only run if it fails. This also results in the 'We should not get here' code running in most cases

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 17322
Build 17157: arc lint + arc unit

Event Timeline

Yes sir! We have a winner!

This revision is now accepted and ready to land.Jun 16 2018, 2:46 AM
This revision was automatically updated to reflect the committed changes.