mirror of https://github.com/acidanthera/audk.git
don't set all bytes in TargetID as zero. This change is made due to keep consistent with GetNextTargetLun and GetTargetLun
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8336 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
cdcc36ae92
commit
08654acba5
|
@ -282,7 +282,7 @@ IScsiExtScsiPassThruGetTargetLun (
|
|||
Private = ISCSI_DRIVER_DATA_FROM_EXT_SCSI_PASS_THRU (This);
|
||||
ConfigNvData = &Private->Session.ConfigData.NvData;
|
||||
|
||||
ZeroMem (*Target, TARGET_MAX_BYTES);
|
||||
(*Target)[0] = 0;
|
||||
|
||||
if (AsciiStrCmp (ConfigNvData->TargetName, (CHAR8 *) DevicePath + sizeof (ISCSI_DEVICE_PATH)) != 0) {
|
||||
return EFI_UNSUPPORTED;
|
||||
|
|
Loading…
Reference in New Issue