Page MenuHomeFreeBSD

Fix sign-extension error in adagetparams
ClosedPublic

Authored by asomers on Nov 22 2017, 10:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 3 2024, 9:39 AM
Unknown Object (File)
Oct 3 2024, 8:45 AM
Unknown Object (File)
Sep 24 2024, 3:56 PM
Unknown Object (File)
Sep 23 2024, 6:40 PM
Unknown Object (File)
Sep 22 2024, 2:57 PM
Unknown Object (File)
Sep 19 2024, 8:12 AM
Unknown Object (File)
Sep 16 2024, 1:07 PM
Unknown Object (File)
Sep 16 2024, 1:06 PM
Subscribers

Details

Summary

Fix sign-extension error in adagetparams

adagetparams contains a sign-extension error that will cause the sector
count to be incorrectly calculated for ATA disks of >=1TiB that still use
CHS addressing. Disks using LBA48 addressing are unaffected.

Reported by: Coverity
CID: 1007296

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/cam/ata/ata_da.c
3378 ↗(On Diff #35618)

cut and paste artifact, no? otherwise \ doesn't make sense here.

sys/cam/ata/ata_da.c
3378 ↗(On Diff #35618)

<sigh> not a copy/paste bug. That's just me writing too much Ruby and Go.

Looks good to me, thanks!

This revision is now accepted and ready to land.Dec 6 2017, 4:36 PM
This revision was automatically updated to reflect the committed changes.