Fix bounds checking for 4K sector drives
Bug - 4K virtual drives broken on Windows
@@ -1282,7 +1282,7 @@ RhelScsiGetCapacity(
blocksize = adaptExt->info.blk_size;
lastLBA = adaptExt->info.capacity / (blocksize / SECTOR_SIZE) - 1;
- adaptExt->lastLBA = lastLBA;
+ adaptExt->lastLBA = adaptExt->info.capacity;
if (Srb->DataTransferLength == sizeof(READ_CAPACITY_DATA)) {
if (lastLBA > 0xFFFFFFFF) {
