]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/RamDiskDxe: Perform MediaId check first in BlkIo services
authorHao Wu <hao.a.wu@intel.com>
Fri, 9 Feb 2018 02:16:53 +0000 (10:16 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 26 Feb 2018 00:45:57 +0000 (08:45 +0800)
commit0feca62c7a041a2ad6bb3b3a251dcd0db987b89a
tree80afd345d2786f3aff74f38168afb0381e968a0c
parentf440f7e3caba12c0649c9ce15c33c7ec7aa2a4e8
MdeModulePkg/RamDiskDxe: Perform MediaId check first in BlkIo services

The commit places the check for MediaId at the beginning of Block IO
services:
RamDiskBlkIoReadBlocks and
RamDiskBlkIoWriteBlocks

This aligns with the Block IO protocol implementations for other
devices.

Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskBlockIo.c