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:
Michael Lotz 2008-09-13 00:01:48 +00:00
parent a426099957
commit 2c0a05cce1

View File

@ -293,7 +293,7 @@ periph_io(scsi_periph_device_info *device, io_operation *operation,
// peripheral layer only created "read" error, so we have to
// 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 res.error_code;