Fix data direction flag (using 0 was invalid) for prevent_allow command.
This fixes ticket #4379, panic on eject. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32833 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -41,7 +41,8 @@ prevent_allow(scsi_periph_device_info *device, bool prevent)
|
||||
cmd.opcode = SCSI_OP_PREVENT_ALLOW;
|
||||
cmd.prevent = prevent;
|
||||
|
||||
return periph_simple_exec(device, (uint8 *)&cmd, sizeof(cmd), NULL, 0, 0);
|
||||
return periph_simple_exec(device, (uint8 *)&cmd, sizeof(cmd), NULL, 0,
|
||||
SCSI_DIR_NONE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user