Page MenuHomeFreeBSD

Correct logic error
ClosedPublic

Authored by allanjude on Jun 16 2018, 1:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 3 2024, 3:58 PM
Unknown Object (File)
Sep 27 2024, 8:35 AM
Unknown Object (File)
Sep 17 2024, 10:13 AM
Unknown Object (File)
Sep 8 2024, 12:50 PM
Unknown Object (File)
Sep 7 2024, 10:53 PM
Unknown Object (File)
Sep 7 2024, 9:04 AM
Unknown Object (File)
Sep 7 2024, 6:05 AM
Unknown Object (File)
Sep 1 2024, 11:43 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 Not Applicable
Unit
Tests Not Applicable

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.