mirror of https://github.com/acidanthera/audk.git
initial Target byte array with 0xff (all bytes are 0xff in this array)in GetTargetLun to consistent with GetNextTargetLun.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8946 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
2dae09a530
commit
4a4bb30e6b
|
@ -282,6 +282,7 @@ IScsiExtScsiPassThruGetTargetLun (
|
|||
Private = ISCSI_DRIVER_DATA_FROM_EXT_SCSI_PASS_THRU (This);
|
||||
ConfigNvData = &Private->Session.ConfigData.NvData;
|
||||
|
||||
SetMem (*Target, TARGET_MAX_BYTES, 0xFF);
|
||||
(*Target)[0] = 0;
|
||||
|
||||
if (AsciiStrCmp (ConfigNvData->TargetName, (CHAR8 *) DevicePath + sizeof (ISCSI_DEVICE_PATH)) != 0) {
|
||||
|
|
Loading…
Reference in New Issue