mirror of https://github.com/acidanthera/audk.git
MdeModulePkg SdBlockIoPei: Initialize 'SwitchResp' elements before using
The commit makes sure that the elements in array 'SwitchResp' get initialized before being used. 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>
This commit is contained in:
parent
072a3ca1d3
commit
a00df2e562
|
@ -2647,6 +2647,7 @@ SdPeimSetBusMode (
|
||||||
//
|
//
|
||||||
// Get the supported bus speed from SWITCH cmd return data group #1.
|
// Get the supported bus speed from SWITCH cmd return data group #1.
|
||||||
//
|
//
|
||||||
|
ZeroMem (SwitchResp, sizeof (SwitchResp));
|
||||||
Status = SdPeimSwitch (Slot, 0xF, 0xF, 0xF, 0xF, FALSE, SwitchResp);
|
Status = SdPeimSwitch (Slot, 0xF, 0xF, 0xF, 0xF, FALSE, SwitchResp);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
return Status;
|
return Status;
|
||||||
|
|
Loading…
Reference in New Issue