diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-15 03:16:13 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-07-15 03:16:13 +0000 |
commit | 4a4bb30e6bfe92d3be73420ad0c1ab1457b6e184 (patch) | |
tree | 3de1213895f2dc61fcf3c4805a21172d5ca307b1 /MdeModulePkg | |
parent | 2dae09a53058408846f3710f4b3060b26aab0c55 (diff) | |
download | edk2-platforms-4a4bb30e6bfe92d3be73420ad0c1ab1457b6e184.tar.xz |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/Network/IScsiDxe/IScsiExtScsiPassThru.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiExtScsiPassThru.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiExtScsiPassThru.c index cfc4596b26..9b36e92cf8 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiExtScsiPassThru.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiExtScsiPassThru.c @@ -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) {
|