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)
Thu, Aug 27, 12:26 AM
Unknown Object (File)
Wed, Aug 26, 11:41 AM
Unknown Object (File)
Fri, Aug 21, 2:06 PM
Unknown Object (File)
Fri, Aug 21, 1:54 PM
Unknown Object (File)
Fri, Aug 21, 1:42 PM
Unknown Object (File)
Thu, Aug 20, 12:35 PM
Unknown Object (File)
Sun, Aug 16, 10:49 AM
Unknown Object (File)
Sun, Aug 16, 10:49 AM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 13336
Build 13568: arc lint + arc unit

Event Timeline

sys/cam/ata/ata_da.c
3380–3381

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

sys/cam/ata/ata_da.c
3380–3381

<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.