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:
eric_tian 2009-07-15 03:16:13 +00:00
parent 2dae09a530
commit 4a4bb30e6b
1 changed files with 1 additions and 0 deletions

View File

@ -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) {