CID 1258: This was probably missed when replacing all "write" with
operation->IsWrite(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27466 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a426099957
commit
2c0a05cce1
@ -293,7 +293,7 @@ periph_io(scsi_periph_device_info *device, io_operation *operation,
|
|||||||
|
|
||||||
// peripheral layer only created "read" error, so we have to
|
// peripheral layer only created "read" error, so we have to
|
||||||
// map them to "write" errors if this was a write request
|
// map them to "write" errors if this was a write request
|
||||||
if (res.error_code == B_DEV_READ_ERROR && write)
|
if (res.error_code == B_DEV_READ_ERROR && operation->IsWrite())
|
||||||
return B_DEV_WRITE_ERROR;
|
return B_DEV_WRITE_ERROR;
|
||||||
|
|
||||||
return res.error_code;
|
return res.error_code;
|
||||||
|
Loading…
Reference in New Issue
Block a user