]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix off-by-one error in HPA/AMA maximum reporting.
authorAlexander Motin <mav@FreeBSD.org>
Fri, 22 Nov 2019 15:41:47 +0000 (15:41 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Fri, 22 Nov 2019 15:41:47 +0000 (15:41 +0000)
commitf97cf1a168d012b8642f6296a824c687e4b3bfb2
tree373eb1bd515be2a3fd80a8488c5e47069774631e
parent86d0c432a6cf281711887f115fe8b62cc840c157
Fix off-by-one error in HPA/AMA maximum reporting.

Before my refactoring the code reported value as maximum number of sectors,
adding one to the maximum sector number returned by respective command.
While this difference is somewhat confusing, restore previous behavior.

MFC after: 3 days
sbin/camcontrol/camcontrol.c