diff options
author | Hao Wu <hao.a.wu@intel.com> | 2015-12-22 13:53:26 +0000 |
---|---|---|
committer | hwu1225 <hwu1225@Edk2> | 2015-12-22 13:53:26 +0000 |
commit | a5d28900d21cd3de0235490c602d86daf9208b24 (patch) | |
tree | df14f51aec9632c473b35c4eed219ad7bab862c4 /MdeModulePkg/Bus | |
parent | 41628cbc7cb267f35db4ba2efca833aa39198cba (diff) | |
download | edk2-a5d28900d21cd3de0235490c602d86daf9208b24.zip edk2-a5d28900d21cd3de0235490c602d86daf9208b24.tar.gz edk2-a5d28900d21cd3de0235490c602d86daf9208b24.tar.bz2 |
MdeModulePkg ScsiDiskDxe: Set block I/O media of SCSI CDROM to read-only
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19443 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r-- | MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c b/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c index eb50889..88bce3f 100644 --- a/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c +++ b/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDisk.c @@ -256,6 +256,7 @@ ScsiDiskDriverBindingStart ( case EFI_SCSI_TYPE_CDROM:
ScsiDiskDevice->BlkIo.Media->BlockSize = 0x800;
+ ScsiDiskDevice->BlkIo.Media->ReadOnly = TRUE;
MustReadCapacity = FALSE;
break;
}
|