Page MenuHomeFreeBSD

ata_xpt: Use the correct union member when accessing valid
ClosedPublic

Authored by brooks on Jul 19 2019, 10:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 13 2024, 3:48 AM
Unknown Object (File)
Dec 21 2023, 3:04 AM
Unknown Object (File)
Dec 20 2023, 12:33 AM
Unknown Object (File)
Dec 18 2023, 6:57 PM
Unknown Object (File)
Oct 29 2023, 3:28 PM
Unknown Object (File)
Oct 19 2023, 7:00 PM
Unknown Object (File)
Oct 19 2023, 6:50 PM
Unknown Object (File)
Sep 7 2023, 6:54 AM
Subscribers

Details

Summary

In principle this should not matter as it's a union and they point to
the same memory location but based on the code above we should be
accessing .sata and not .ata

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25432
Build 24060: arc lint + arc unit

Event Timeline

I found this in our CheriBSD diffs. I'm not sure how @arichardson ran into it.

I'm not sure why I made that change. I just remember that we had some compiler bugs in that function that went away when I added a printf. I think this was just one of the suspicious things that I saw so I made the change hoping that it would fix the miscompilation.

This revision is now accepted and ready to land.Jul 20 2019, 6:07 AM