* Fixed a bug in scsi_periph that prevents accessing block number 0x100000.
* The blocks beyond that would be potentially read in smaller chunks than anticipated, too. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26798 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -82,7 +82,8 @@ periph_read_write(scsi_periph_handle_info *handle, const phys_vecs *vecs,
|
|||||||
// don't allow transfer cross the 24 bit address limit
|
// don't allow transfer cross the 24 bit address limit
|
||||||
// (I'm not sure whether this is allowed, but this way we
|
// (I'm not sure whether this is allowed, but this way we
|
||||||
// are sure to not ask for trouble)
|
// are sure to not ask for trouble)
|
||||||
num_blocks = min(num_blocks, 0x100000 - pos);
|
if (pos < 0x100000)
|
||||||
|
num_blocks = min(num_blocks, 0x100000 - pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
num_bytes = num_blocks * block_size;
|
num_bytes = num_blocks * block_size;
|
||||||
|
|||||||
Reference in New Issue
Block a user