]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/SdMmc: Avoid assigning 0 to the BlockSize of Trb
authorHao Wu <hao.a.wu@intel.com>
Thu, 5 Jan 2017 01:43:21 +0000 (09:43 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 21 Feb 2017 01:26:08 +0000 (09:26 +0800)
commit54228046533720f0e8282be15eea7aafaf0cd0d6
tree79587bb4a30e33186783f6947dc13b71e80fc964
parentce8e582c06ef3d82b1df93a7de289ef7d9905c4a
MdeModulePkg/SdMmc: Avoid assigning 0 to the BlockSize of Trb

Refine code to avoid potential divide by zero when calculating block
number.

Cc: Feng Tian <feng.tian@intel.com>
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>
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c
MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcHci.c
MdeModulePkg/Bus/Sd/SdBlockIoPei/SdHci.c